diff --git a/.github/workflows/sync-fork.yml b/.github/workflows/sync-fork.yml index c8dc9ff..4fe906f 100644 --- a/.github/workflows/sync-fork.yml +++ b/.github/workflows/sync-fork.yml @@ -13,19 +13,20 @@ permissions: env: GH_TOKEN: ${{ github.token }} - FORK_OWNER: NCIPangea UPSTREAM_OWNER: CCBR jobs: sync: runs-on: ubuntu-latest + strategy: + matrix: + FORK_OWNER: [NCIPangea] steps: - - name: get repo name - # required for actions scheduled via cron, as github.event.repository.name won't work - run: | - echo "REPO=$(basename ${{ github.repository }})" >> $GITHUB_ENV - name: sync fork # only run this action from the forked repo - if: ${{ github.repository_owner == env.FORK_OWNER }} + if: ${{ github.repository_owner == matrix.FORK_OWNER }} run: | + # required for actions scheduled via cron, as github.event.repository.name won't work + echo "REPO=$(basename ${{ github.repository }})" >> $GITHUB_ENV + # sync the fork from upstream gh repo sync ${{ github.repository }} --source $UPSTREAM_OWNER/$REPO --force