Skip to content

Commit 3e3d651

Browse files
committed
udpated zudoku action
1 parent 9b05aaf commit 3e3d651

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/update-zudoku.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ jobs:
1111
if: github.ref == 'refs/heads/main'
1212

1313
steps:
14-
- uses: actions/checkout@v4
15-
14+
# Must create the token first as the checkout step needs to use this token
1615
- name: Generate a token
1716
id: generate-token
1817
uses: actions/create-github-app-token@v1
1918
with:
2019
app-id: "1124747"
2120
private-key: ${{ secrets.INTEGRATIONS_APP_PRIVATE_KEY }}
2221

22+
- uses: actions/checkout@v4
23+
with:
24+
token: ${{ steps.generate-token.outputs.token }}
25+
2326
- name: Install Node.js
2427
uses: actions/setup-node@v4
2528
with:
@@ -36,8 +39,6 @@ jobs:
3639
- run: git config --global user.name "Zudoku Bot"
3740

3841
- name: Commit and push if there are changes
39-
env:
40-
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
4142
run: |
4243
git add -A
4344
git diff --staged --quiet || (git commit -m "Updated Zudoku Package" && git push origin main)

0 commit comments

Comments
 (0)