Skip to content

Commit 08143d3

Browse files
committed
feat(ci): Change github token
1 parent 1dbf268 commit 08143d3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/trigger-downstream-flake-update.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,17 @@ jobs:
1414
include:
1515
- repo: 'metacraft-labs/nix-blockchain-development'
1616
steps:
17+
- uses: tibdex/[email protected]
18+
id: generate-token
19+
with:
20+
app_id: ${{ secrets.CREATE_PR_APP_ID }}
21+
private_key: ${{ secrets.CREATE_PR_APP_PRIVATE_KEY }}
22+
1723
- name: Trigger Downstream Pipeline
1824
run: |
1925
curl -L -X POST \
2026
-H "Accept: application/vnd.github+json" \
21-
-H "Authorization: token ${{ github.token }}" \
27+
-H "Authorization: token ${{ steps.generate-token.outputs.token }}" \
2228
-H "X-GitHub-Api-Version: 2022-11-28" \
2329
"https://api.github.com/repos/${{ matrix.repo }}/dispatches" \
2430
-d '{"event_type":"flake-update"}'

0 commit comments

Comments
 (0)