forked from ASAP-CRN/spatial-transcriptomics-wf
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (25 loc) · 780 Bytes
/
sync-fork.yml
File metadata and controls
33 lines (25 loc) · 780 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
name: Sync Fork
on:
schedule:
# Runs every week on Sunday at 2 AM UTC
- cron: '0 2 * * 0'
workflow_dispatch: # Allows manual triggering
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
fetch-depth: 0
- name: Sync upstream
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git remote add upstream https://github.com/ASAP-CRN/spatial-transcriptomics-wf.git
git fetch upstream
# Merge upstream changes
git checkout main
git merge upstream/main
git push origin main