File tree 1 file changed +43
-0
lines changed
1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments