Skip to content

Commit

Permalink
Merge pull request #10 from CCBR/sync-forks
Browse files Browse the repository at this point in the history
Sync public forks for NCIPangea
  • Loading branch information
kopardev authored Jan 2, 2024
2 parents b0f5417 + 983851d commit d032b48
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/sync-forks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Sync Forks

on:
schedule:
- cron: "47 11 * * *" # once every day
push:
paths:
- .github/workflows/sync-forks.yml

permissions:
contents: write

env:
# Token must be created by someone with write access for all forks.
# Be sure to 'configure SSO' from the token creation page for each fork organization.
GH_TOKEN: ${{ secrets.SYNC_FORK_TOKEN }}
UPSTREAM_OWNER: CCBR

jobs:
sync:
runs-on: ubuntu-latest
strategy:
matrix:
FORK_OWNER: [NCIPangea]
REPO: [XAVIER, RENEE]
steps:
- name: sync forked repos
run: |
gh repo sync ${{ matrix.FORK_OWNER }}/${{ matrix.REPO }} --source $UPSTREAM_OWNER/${{ matrix.REPO }} --force

0 comments on commit d032b48

Please sign in to comment.