Skip to content

Commit 395862f

Browse files
committed
ci: use app token for Convex AI update PRs
1 parent ba7a108 commit 395862f

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/update-convex-ai-files.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,21 @@ jobs:
3232
with:
3333
bun-version: ${{ env.BUN_VERSION }}
3434

35+
- uses: actions/create-github-app-token@v3
36+
id: app-token
37+
continue-on-error: true
38+
with:
39+
app-id: "2729701"
40+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
41+
42+
- uses: actions/create-github-app-token@v3
43+
id: app-token-fallback
44+
continue-on-error: true
45+
if: steps.app-token.outcome == 'failure'
46+
with:
47+
app-id: "2971289"
48+
private-key: ${{ secrets.GH_APP_PRIVATE_KEY_FALLBACK }}
49+
3550
- name: Install dependencies
3651
run: bun install --frozen-lockfile
3752

@@ -71,7 +86,7 @@ jobs:
7186
- name: Open or update pull request
7287
if: steps.changes.outputs.changed == 'true'
7388
env:
74-
GH_TOKEN: ${{ github.token }}
89+
GH_TOKEN: ${{ steps.app-token.outputs.token || steps.app-token-fallback.outputs.token || github.token }}
7590
run: |
7691
set -euo pipefail
7792

0 commit comments

Comments
 (0)