Skip to content

Sync fork with upstream (direct) #55

Sync fork with upstream (direct)

Sync fork with upstream (direct) #55

Workflow file for this run

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