Skip to content

Commit 8c8c155

Browse files
chore: weekly check boilerplate
1 parent d4afb85 commit 8c8c155

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Update boilerplate
2+
3+
on:
4+
schedule:
5+
- cron: '30 3 * * MON'
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
update-cli:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
19+
- name: Prepare
20+
uses: ./.github/actions/prepare
21+
22+
- name: Install Juno CLI
23+
run: npm i -g @junobuild/cli
24+
shell: bash
25+
26+
- name: Update
27+
run: npm run copy:boilerplate
28+
29+
- name: Check for Changes
30+
run: |
31+
if ! git diff --quiet; then
32+
echo "CHANGES_DETECTED=true" >> $GITHUB_ENV
33+
fi
34+
35+
# This action creates a PR only if there are changes.
36+
- name: Create Pull Request
37+
if: env.CHANGES_DETECTED == 'true'
38+
uses: ./.github/actions/create-pr
39+
with:
40+
branch: bot-cli-docs-update
41+
title: 'feat: Update boilerplate'
42+
body: |
43+
Modifications have been made to the templates of the CLI.

0 commit comments

Comments
 (0)