Skip to content

Commit 96caeff

Browse files
committed
fix: use GITHUB_TOKEN for push, explicitly dispatch build-index after deploy
1 parent 026a644 commit 96caeff

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/analyze-customer-repo.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111

1212
permissions:
1313
contents: write
14+
actions: write
1415

1516
jobs:
1617
analyze:
@@ -32,9 +33,7 @@ jobs:
3233

3334
- name: Deploy to central site
3435
env:
35-
# BOT_TOKEN (PAT with repo+workflow scopes) is required so the push
36-
# triggers build-index.yml. GITHUB_TOKEN pushes are ignored by GitHub Actions.
37-
GH_TOKEN: ${{ secrets.BOT_TOKEN || secrets.GITHUB_TOKEN }}
36+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3837
REPO: ${{ inputs.repo }}
3938
run: |
4039
git config --global user.name "supermodel-bot"
@@ -50,3 +49,11 @@ jobs:
5049
git diff --staged --quiet && echo "No changes to commit" && exit 0
5150
git commit -m "Deploy arch-docs for ${REPO}"
5251
git push
52+
53+
- name: Trigger Cloudflare Pages redeploy
54+
env:
55+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
run: |
57+
gh workflow run build-index.yml \
58+
--repo GraphTechnologyDevelopers/graphtechnologydevelopers.github.io \
59+
--ref main

0 commit comments

Comments
 (0)