diff --git a/.github/workflows/trigger-skill-sync.yml b/.github/workflows/trigger-skill-sync.yml new file mode 100644 index 0000000..e3373f5 --- /dev/null +++ b/.github/workflows/trigger-skill-sync.yml @@ -0,0 +1,33 @@ +name: Trigger downstream skill sync + +on: + push: + branches: [main] + paths: + - "skills/**" + +concurrency: + group: skill-sync-dispatch + cancel-in-progress: true + +jobs: + dispatch: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Dispatch to internal actions repo + env: + GH_TOKEN: ${{ secrets.SYNC_DISPATCH_TOKEN }} + TARGET_REPO: ${{ vars.TARGET_REPO }} + SOURCE_REPO: ${{ github.repository }} + SOURCE_SHA: ${{ github.sha }} + SOURCE_REF: ${{ github.ref }} + run: | + gh api -X POST "repos/${TARGET_REPO}/dispatches" \ + -f event_type="agent-skills-updated" \ + -f client_payload[source_repo]="$SOURCE_REPO" \ + -f client_payload[source_sha]="$SOURCE_SHA" \ + -f client_payload[source_ref]="$SOURCE_REF" \