feat(registry): index AffineScript external specs as verified pointers #513
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: MPL-2.0 | ||
|
Check failure on line 1 in .github/workflows/instant-sync.yml
|
||
| # Instant Forge Sync - Triggers propagation to all forges on push/release | ||
| name: Instant Sync | ||
| on: | ||
| push: | ||
| branches: [main, master] | ||
| release: | ||
| types: [published] | ||
| permissions: | ||
| contents: read | ||
| jobs: | ||
| dispatch: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| # Gate the cross-repo repository_dispatch on FARM_DISPATCH_TOKEN | ||
| # being configured. Without the PAT, peter-evans/repository-dispatch | ||
| # falls back to GITHUB_TOKEN — which cannot dispatch cross-repo and | ||
| # returns HTTP 401 "Bad credentials", failing the job. Caught 39 | ||
| # estate repos on the 2026-05-30 audit. With this gate the workflow | ||
| # gracefully skips on repos where the secret has not been | ||
| # propagated, instead of red-ing main on every push. | ||
| - name: Trigger Propagation | ||
| if: ${{ secrets.FARM_DISPATCH_TOKEN != '' }} | ||
| uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v3 | ||
| with: | ||
| token: ${{ secrets.FARM_DISPATCH_TOKEN }} | ||
| repository: hyperpolymath/.git-private-farm | ||
| event-type: propagate | ||
| client-payload: |- | ||
| { | ||
| "repo": "${{ github.event.repository.name }}", | ||
| "ref": "${{ github.ref }}", | ||
| "sha": "${{ github.sha }}", | ||
| "forges": "" | ||
| } | ||
| - name: Skipped (FARM_DISPATCH_TOKEN not configured) | ||
| if: ${{ secrets.FARM_DISPATCH_TOKEN == '' }} | ||
| env: | ||
| REPO_NAME: ${{ github.event.repository.name }} | ||
| run: | | ||
| echo "::notice::FARM_DISPATCH_TOKEN secret not configured on ${REPO_NAME}; skipping cross-repo dispatch. Configure the org-level FARM_DISPATCH_TOKEN PAT (repo scope) to enable instant forge propagation." | ||
| - name: Confirm | ||
| env: | ||
| REPO_NAME: ${{ github.event.repository.name }} | ||
| run: echo "::notice::Propagation triggered for ${REPO_NAME}" | ||