ci: add sync-fork GH action to main XAVIER repo #1
Workflow file for this run
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 Fork | |
on: | |
schedule: | |
- cron: '0 0 * * *' # once every day | |
workflow_dispatch: # on button click | |
push: | |
paths: | |
- .github/workflows/sync-fork.yml | |
env: | |
REPO: ${{ github.event.repository.name }} | |
GH_TOKEN: ${{ github.token }} | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: sync fork | |
run: | | |
gh repo sync NCIPangea/$REPO --source CCBR/$REPO --force |