forked from magao-x/MagAOX
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.33 KB
/
upstream-sync.yml
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
37
38
39
40
41
42
43
name: Sync with MagAOX upstream dev branch
permissions:
contents: write
on:
schedule:
- cron: '0 23 * * Sun'
workflow_dispatch:
jobs:
sync_dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# ref: fsm
fetch-depth: 0
- name: Get current branch
id: check_step
run: echo "Branch is ${{ github.ref_name }})."
- name: Sync dev_upstream_sync with MagAOX dev branch
run: |
git remote add upstream https://github.com/magao-x/MagAOX.git
git fetch upstream
# git rebase upstream/dev && (echo "Success" && git push origin dev_upstream_sync) || (echo "Fail" && git rebase --abort)
sync_dev_dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# ref: dev_dev_upstream_sync
ref: dev
fetch-depth: 0
- name: Get current branch
id: check_step
run: echo "Branch is ${{ github.ref_name }})."
- name: Sync dev_dev_upstream_sync with MagAOX dev branch
run: |
git remote add upstream https://github.com/magao-x/MagAOX.git
git fetch upstream
# git rebase upstream/dev && (echo "Success" && git push origin dev_dev_upstream_sync) || (echo "Fail" && git rebase --abort)