File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Trigger Downstream Flake Update on Push to Main
2+
3+ on :
4+ push :
5+ branches :
6+ - main # Or the branch you want to track
7+
8+ jobs :
9+ trigger-downstream-repo :
10+ runs-on : ubuntu-latest
11+
12+ strategy :
13+ matrix :
14+ include :
15+ - repo : ' metacraft-labs/nixos-machine-config'
16+ steps :
17+ 18+ id : generate-token
19+ with :
20+ app_id : ${{ secrets.CREATE_PR_APP_ID }}
21+ private_key : ${{ secrets.CREATE_PR_APP_PRIVATE_KEY }}
22+
23+ - name : Trigger Downstream Pipeline
24+ run : |
25+ curl -L -X POST \
26+ -H "Accept: application/vnd.github+json" \
27+ -H "Authorization: token ${{ steps.generate-token.outputs.token }}" \
28+ -H "X-GitHub-Api-Version: 2022-11-28" \
29+ "https://api.github.com/repos/${{ matrix.repo }}/dispatches" \
30+ -d '{"event_type":"flake-update"}'
You can’t perform that action at this time.
0 commit comments