Sync fork with upstream (direct) #55
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 fork with upstream (direct) | |
| on: | |
| schedule: | |
| - cron: '0 3 * * *' | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: main | |
| fetch-depth: 0 | |
| - name: Add upstream | |
| run: | | |
| git remote remove upstream || true | |
| git remote add upstream https://github.com/Nicolas-Radomski/GenomicBasedClassification.git | |
| git fetch upstream | |
| - name: Merge upstream/main into main | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git merge upstream/main --no-edit | |
| - name: Push to origin/main | |
| run: | | |
| git push origin main |