Skip to content

Commit

Permalink
ci: add sync-fork GH action to main XAVIER repo
Browse files Browse the repository at this point in the history
CRON schedule will not run from non-default branch, so this has to be in CCBR/XAVIER main

resolves #46
  • Loading branch information
kelly-sovacool committed Sep 5, 2023
1 parent 2b7cc0c commit ba1003b
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/sync-fork.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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

0 comments on commit ba1003b

Please sign in to comment.