Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/trigger-downstream-flake-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Trigger Downstream Flake Update on Push to Main

on:
push:
branches:
- main # Or the branch you want to track

jobs:
trigger-downstream-repo:
runs-on: ubuntu-latest

strategy:
matrix:
include:
- repo: 'metacraft-labs/nix-blockchain-development'
steps:
- name: Trigger Downstream Pipeline
run: |
curl -L -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: token ${{ github.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
"https://api.github.com/repos/${{ matrix.repo }}/dispatches" \
-d '{"event_type":"flake-update"}'