File tree 2 files changed +29
-6
lines changed 2 files changed +29
-6
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
pull_request :
6
6
schedule :
7
- # # run action every sunday at 20:00 UTC
8
- - cron : " 00 20 * * 0"
7
+ - cron : " 00 20 * * *"
9
8
10
9
jobs :
11
10
checks :
@@ -32,12 +31,24 @@ jobs:
32
31
33
32
- name : Create Pull Request
34
33
if : ${{ github.event_name == 'schedule' }}
34
+ id : cpr
35
35
uses : peter-evans/create-pull-request@v4
36
36
with :
37
+ token : ${{ secrets.JAYLYBOT_TOKEN }}
38
+ push-to-fork : jayly-bot/ScriptAPI
37
39
commit-message : Upload generated files
38
40
title : Upload generated files for scripts
39
41
body : Transpiled TypeScript files and created README files, please review.
40
- labels : scripts
41
42
branch : scripts/update
42
43
base : main
43
- author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
44
+ author :
jayly-bot <[email protected] >
45
+
46
+ - name : Check outputs
47
+ if : ${{ steps.cpr.outputs.pull-request-number }}
48
+ run : |
49
+ echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
50
+ echo "Pull Request URL - $ISSUE"
51
+ gh pr edit $ISSUE --add-label "scripts"
52
+ env :
53
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
54
+ PULL_REQUEST : ${{ steps.cpr.outputs.pull-request-url }}
Original file line number Diff line number Diff line change @@ -27,12 +27,24 @@ jobs:
27
27
run : node ./tools/dependency/index.js
28
28
29
29
- name : Create Pull Request
30
+ id : cpr
30
31
uses : peter-evans/create-pull-request@v4
31
32
with :
33
+ token : ${{ secrets.JAYLYBOT_TOKEN }}
34
+ push-to-fork : jayly-bot/ScriptAPI
32
35
commit-message : Update package.json and package-lock.json
33
36
title : Update npm packages
34
37
body : Updated NPM packages in package.json, please review.
35
- labels : dependencies
36
38
branch : dependency/update
37
39
base : main
38
- author : github-actions[bot] <github-actions[bot]@users.noreply.github.com>
40
+ author :
jayly-bot <[email protected] >
41
+
42
+ - name : Check outputs
43
+ if : ${{ steps.cpr.outputs.pull-request-number }}
44
+ run : |
45
+ echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
46
+ echo "Pull Request URL - $ISSUE"
47
+ gh pr edit $ISSUE --add-label "dependencies"
48
+ env :
49
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
+ PULL_REQUEST : ${{ steps.cpr.outputs.pull-request-url }}
You can’t perform that action at this time.
0 commit comments