Skip to content

Commit e57667c

Browse files
authored
Update org-to-forks.yml
1 parent 50f35a0 commit e57667c

1 file changed

Lines changed: 14 additions & 5 deletions

File tree

‎.github/workflows/org-to-forks.yml‎

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,24 @@ jobs:
99
sync-downstream:
1010
runs-on: ubuntu-latest
1111
if: github.repository_owner == 'WarMatrixAI'
12+
1213
steps:
14+
- name: Check GitHub CLI Authentication
15+
env:
16+
GH_TOKEN: ${{ secrets.ORG_SYNC_PAT }}
17+
run: |
18+
gh auth status
19+
1320
- name: Sync Member Forks
1421
env:
1522
GH_TOKEN: ${{ secrets.ORG_SYNC_PAT }}
1623
run: |
17-
# Target usernames configured for automatic downstream syncing
18-
MEMBERS=("zzz-creator" "ytfl")
19-
24+
MEMBERS=("zzz-creator" "ytfl")
25+
2026
for MEMBER in "${MEMBERS[@]}"; do
21-
echo "Attempting upstream synchronization for $MEMBER/${{ github.event.repository.name }}..."
22-
gh repo sync "$MEMBER/${{ github.event.repository.name }}" --branch main || echo "::warning:: Failed to sync $MEMBER's fork. Check branch permissions."
27+
echo "=================================="
28+
echo "Syncing $MEMBER/${{ github.event.repository.name }}"
29+
echo "=================================="
30+
31+
gh repo sync "$MEMBER/${{ github.event.repository.name }}" --branch main
2332
done

0 commit comments

Comments
 (0)