File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Sync Forks
2+ # adapted from CCBR/.github: https://github.com/CCBR/.github/blob/b51390632d8093aa2a3c8cbb871a2f2b5c7d5aae/.github/workflows/sync-forks.yml
3+
4+ on :
5+ schedule :
6+ - cron : " 23 10 * * *" # once every day
7+ push :
8+ paths :
9+ - .github/workflows/sync-forks.yml
10+ workflow_dispatch :
11+
12+ permissions :
13+ contents : write
14+
15+ env :
16+ # Token must be created by someone with write access for all forks.
17+ # Be sure to 'configure SSO' from the token creation page for each fork organization.
18+ GH_TOKEN : ${{ secrets.SYNC_FORK_TOKEN }}
19+ UPSTREAM_OWNER : NCI-RBL
20+
21+ jobs :
22+ sync :
23+ runs-on : ubuntu-latest
24+ strategy :
25+ fail-fast : false
26+ matrix :
27+ FORK_OWNER : [ abcsFrederick ]
28+ REPO : [ {upstream: iCLIP_V3, fork: iCLIP_V3},
29+ {upstream: Dockers, fork: NCI-RBL-Dockers},
30+ {upstream: RNA-seek, fork: RNA-seek}
31+ ]
32+
33+ steps :
34+ - name : sync forked repos
35+ run : |
36+ gh repo sync ${{ matrix.FORK_OWNER }}/${{ matrix.REPO.fork }} --source $UPSTREAM_OWNER/${{ matrix.REPO.upstream }} --force
You can’t perform that action at this time.
0 commit comments