File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -11,15 +11,18 @@ jobs:
11
11
if : github.ref == 'refs/heads/main'
12
12
13
13
steps :
14
- - uses : actions/checkout@v4
15
-
14
+ # Must create the token first as the checkout step needs to use this token
16
15
- name : Generate a token
17
16
id : generate-token
18
17
uses : actions/create-github-app-token@v1
19
18
with :
20
19
app-id : " 1124747"
21
20
private-key : ${{ secrets.INTEGRATIONS_APP_PRIVATE_KEY }}
22
21
22
+ - uses : actions/checkout@v4
23
+ with :
24
+ token : ${{ steps.generate-token.outputs.token }}
25
+
23
26
- name : Install Node.js
24
27
uses : actions/setup-node@v4
25
28
with :
36
39
- run : git config --global user.name "Zudoku Bot"
37
40
38
41
- name : Commit and push if there are changes
39
- env :
40
- GITHUB_TOKEN : ${{ steps.generate-token.outputs.token }}
41
42
run : |
42
43
git add -A
43
44
git diff --staged --quiet || (git commit -m "Updated Zudoku Package" && git push origin main)
You can’t perform that action at this time.
0 commit comments