Skip to content

Commit 01d6ce4

Browse files
committed
feat(ci): Trigger `update fla
1 parent 18f72bc commit 01d6ce4

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@ on:
88
jobs:
99
trigger-downstream-repo:
1010
runs-on: ubuntu-latest
11+
12+
strategy:
13+
matrix:
14+
include:
15+
- repo: 'metacraft-labs/nix-blockchain-development'
1116
steps:
1217
- name: Trigger Downstream Pipeline
1318
run: |
14-
curl -L \
15-
-X POST \
19+
curl -L -X POST \
1620
-H "Accept: application/vnd.github+json" \
17-
-H "Authorization: token ${{ secrets.NIX_GITHUB_TOKEN }}" \
18-
-H "X-GitHub-Api-Version: 2022-11-28" \
19-
https://api.github.com/repos/metacraft-labs/nix-blockchain-development/dispatches \
20-
-d '{"event_type":"flake-update","client_payload":{"unit":false,"integration":true}}'
21+
-H "Authorization: token ${{ github.token }}" \
22+
-H "X-GitHub-Api-Version: 2022-11-28" \
23+
"https://api.github.com/repos/${{ matrix.repo }}/dispatches" \
24+
-d '{"event_type":"flake-update"}'

0 commit comments

Comments
 (0)