Skip to content

fix(ci): re-pin rust-ci-reusable past toolchain-input breakage (#76) #79

fix(ci): re-pin rust-ci-reusable past toolchain-input breakage (#76)

fix(ci): re-pin rust-ci-reusable past toolchain-input breakage (#76) #79

Workflow file for this run

# 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
timeout-minutes: 15
steps:
- name: Check FARM_DISPATCH_TOKEN presence
id: gate
env:
TOKEN: ${{ secrets.FARM_DISPATCH_TOKEN }}
run: |
if [ -n "$TOKEN" ]; then
echo "present=true" >> "$GITHUB_OUTPUT"
else
echo "present=false" >> "$GITHUB_OUTPUT"
echo "::notice::FARM_DISPATCH_TOKEN not set — skipping propagation"
fi
- name: Trigger Propagation
if: steps.gate.outputs.present == 'true'
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
if: steps.gate.outputs.present == 'true'
env:
REPO_NAME: ${{ github.event.repository.name }}
run: echo "::notice::Propagation triggered for ${REPO_NAME}"