feat(res-to-affine): tree-sitter AST walker for side-effect-import (P… #318
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 | |
| # 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 | |
| # Skip the dispatch job entirely when the FARM_DISPATCH_TOKEN secret is | |
| # not configured (e.g. on forks, or before the secret is provisioned). | |
| # Without this gate the action errors with "Parameter token or opts.auth | |
| # is required" and the whole workflow fails on every main push. | |
| if: ${{ vars.FARM_DISPATCH_ENABLED == 'true' }} | |
| steps: | |
| - name: Trigger Propagation | |
| 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: Confirm | |
| run: echo "::notice::Propagation triggered for ${{ github.event.repository.name }}" |