Sync Forks #982
This file contains hidden or 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: | |
| UPSTREAM_OWNER: CCBR | |
| jobs: | |
| sync-to-ABCS: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| FORK_OWNER: [abcsFrederick] | |
| REPO: | |
| - ASPEN | |
| - CARLISLE | |
| - CHAMPAGNE | |
| - CRISPIN | |
| - RENEE | |
| - XAVIER | |
| - ASCENT | |
| - CCBR_circRNA_AmpliconSeq | |
| - CCBR_NextflowTemplate | |
| - CCBR_SnakemakeTemplate | |
| - DNAnexus | |
| - Dockers2 | |
| - HapFerret | |
| - HERVx | |
| - l2p | |
| - METRO | |
| - MAAPSTER | |
| - pyrkit | |
| - rNA | |
| - SINCLAIR | |
| - spacesavers2 | |
| - TRANQUIL | |
| - MAPLE | |
| - LOGAN | |
| steps: | |
| - name: Generate a token | |
| id: generate-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ vars.CCBR_BOT_APP_ID }} | |
| private-key: ${{ secrets.CCBR_BOT_PRIVATE_KEY }} | |
| owner: ${{ matrix.FORK_OWNER }} | |
| - name: sync forked repos | |
| env: | |
| GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| run: | | |
| gh repo sync ${{ matrix.FORK_OWNER }}/${{ matrix.REPO }} --source $UPSTREAM_OWNER/${{ matrix.REPO }} --force | |
| sync-to-Pangea: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| FORK_OWNER: [NCIPangea] | |
| REPO: [ASPEN, CARLISLE, CHAMPAGNE, CRISPIN, RENEE, XAVIER] | |
| steps: | |
| - name: Generate a token | |
| id: generate-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ vars.CCBR_BOT_APP_ID }} | |
| private-key: ${{ secrets.CCBR_BOT_PRIVATE_KEY }} | |
| owner: ${{ matrix.FORK_OWNER }} | |
| - name: sync forked repos | |
| env: | |
| GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| 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: Generate a token | |
| id: generate-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ vars.CCBR_BOT_APP_ID }} | |
| private-key: ${{ secrets.CCBR_BOT_PRIVATE_KEY }} | |
| owner: ${{ matrix.FORK_OWNER }} | |
| - name: sync forked repos | |
| env: | |
| GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| 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: Generate a token | |
| id: generate-token | |
| uses: actions/create-github-app-token@v2 | |
| with: | |
| app-id: ${{ vars.CCBR_BOT_APP_ID }} | |
| private-key: ${{ secrets.CCBR_BOT_PRIVATE_KEY }} | |
| owner: ${{ matrix.FORK_OWNER }} | |
| - name: sync forked repos | |
| env: | |
| GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| run: | | |
| gh repo sync ${{ matrix.FORK_OWNER }}/${{ matrix.REPO }} --source ${{matrix.UPSTREAM_OWNER}}/${{ matrix.REPO }} --force |