File tree 1 file changed +34
-0
lines changed
1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Template Update
2
+
3
+ permissions :
4
+ contents : read
5
+
6
+ on :
7
+ schedule :
8
+ - cron : ' 1 1 1 * *'
9
+ workflow_dispatch :
10
+
11
+ env :
12
+ RUST_BACKTRACE : 1
13
+ CARGO_TERM_COLOR : always
14
+ CLICOLOR : 1
15
+ TEMPLATE_URL : " https://github.com/epage/_rust.git"
16
+ TEMPLATE_BRANCH : " https://github.com/epage/_rust.git"
17
+
18
+ concurrency :
19
+ group : " ${{ github.workflow }}-${{ github.ref }}"
20
+ cancel-in-progress : true
21
+
22
+ jobs :
23
+ update :
24
+ steps :
25
+ - name : Checkout repository
26
+ uses : actions/checkout@v4
27
+ - name : Fetch template
28
+ run : " git remote add template ${{ env.TEMPLATE_URL }} && git fetch template ${{ env.TEMPLATE_BRANCH }}"
29
+ - name : Merge template
30
+ run : " git checkout -b template-update && git merge template/${{ env.TEMPLATE_BRANCH }} -m 'chore: Update from template'"
31
+ - name : Push
32
+ run : " gh pr create -H template-update"
33
+ permissions :
34
+ security-events : write # to create PR
You can’t perform that action at this time.
0 commit comments