forked from Nicolas-Radomski/GenomicBasedClassification
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 843 Bytes
/
sync.yml
File metadata and controls
36 lines (29 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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