Skip to content

Merge branch 'lineofflight:main' into main #9

Merge branch 'lineofflight:main' into main

Merge branch 'lineofflight:main' into main #9

Workflow file for this run

on:
push:
branches:
- main
jobs:
sync-forks:
runs-on: ubuntu-latest
steps:
- env:
GH_TOKEN: ${{ secrets.ORG_PAT }}
run: |
REPO="${{ github.repository }}"
OWNER="${REPO%/*}"
BASE_REPO="${REPO#*/}"
gh api repos/$OWNER/$BASE_REPO/forks --paginate |
jq -r ".[] | select(.owner.login == \"$OWNER\") | .name" |
while read -r fork; do
echo "Syncing fork: $OWNER/$fork"
gh repo sync $OWNER/$fork --source $OWNER/$BASE_REPO || echo "Failed to sync $OWNER/$fork"
done