Sync Forks #353
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Sync Forks | |
on: | |
schedule: | |
- cron: "47 11 * * *" # once every day | |
push: | |
paths: | |
- .github/workflows/sync-forks.yml | |
workflow_dispatch: | |
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-from-CCBR: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
FORK_OWNER: [NCIPangea, abcsFrederick] | |
REPO: [ASPEN, CARLISLE, CHAMPAGNE, CRUISE, RENEE, XAVIER] | |
include: | |
- REPO: ASCENT | |
FORK_OWNER: abcsFrederick | |
- REPO: CCBR_circRNA_AmpliconSeq | |
FORK_OWNER: abcsFrederick | |
- REPO: CCBR_NextflowTemplate | |
FORK_OWNER: abcsFrederick | |
- REPO: CCBR_SnakemakeTemplate | |
FORK_OWNER: abcsFrederick | |
- REPO: DNAnexus | |
FORK_OWNER: abcsFrederick | |
- REPO: DOCKERS | |
FORK_OWNER: abcsFrederick | |
- REPO: HapFerret | |
FORK_OWNER: abcsFrederick | |
- REPO: HERVx | |
FORK_OWNER: abcsFrederick | |
- REPO: l2p | |
FORK_OWNER: abcsFrederick | |
- REPO: METRO | |
FORK_OWNER: abcsFrederick | |
- REPO: MAAPSTER | |
FORK_OWNER: abcsFrederick | |
- REPO: permfix | |
FORK_OWNER: abcsFrederick | |
- REPO: pyrkit | |
FORK_OWNER: abcsFrederick | |
- REPO: rNA | |
FORK_OWNER: abcsFrederick | |
- REPO: SINCLAIR | |
FORK_OWNER: abcsFrederick | |
- REPO: spacesavers2 | |
FORK_OWNER: abcsFrederick | |
- REPO: TRANQUIL | |
FORK_OWNER: abcsFrederick | |
- REPO: MAPLE | |
FORK_OWNER: abcsFrederick | |
- REPO: LOGAN | |
FORK_OWNER: abcsFrederick | |
steps: | |
- name: sync forked repos | |
run: | | |
gh repo sync ${{ matrix.FORK_OWNER }}/${{ matrix.REPO }} --source $UPSTREAM_OWNER/${{ matrix.REPO }} --force | |
sync-to-nidap: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
FORK_OWNER: [NIDAP-Community] | |
REPO: | |
- CPTR-9-Weigert-DSP-Analysis | |
- CPTR_5_DSP_Krug | |
- CPTR_6_DSP_Annunziata | |
- CPTR-12-Wang-DSP-Analysis | |
- CPTR-11-Beck-Canine-OsteoSarcoma-DSP-Analysis | |
- CPTR-10-Tosato-Mouse-WTA-DSP-Analysis | |
- DSP_Analysis | |
steps: | |
- name: sync forked repos | |
run: | | |
gh repo sync ${{ matrix.FORK_OWNER }}/${{ matrix.REPO }} --source $UPSTREAM_OWNER/${{ matrix.REPO }} --force | |
sync-misc: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- REPO: Oncogenomics_NF_WF | |
UPSTREAM_OWNER: CCRGeneticsBranch | |
FORK_OWNER: abcsFrederick | |
- REPO: fruitsc | |
UPSTREAM_OWNER: NCI-CCR-POB | |
FORK_OWNER: abcsFrederick | |
- REPO: POB_snMultiome_pipeline | |
UPSTREAM_OWNER: NCI-CCDI | |
FORK_OWNER: abcsFrederick | |
steps: | |
- name: sync forked repos | |
run: | | |
gh repo sync ${{ matrix.FORK_OWNER }}/${{ matrix.REPO }} --source ${{matrix.UPSTREAM_OWNER}}/${{ matrix.REPO }} --force |