forked from iree-org/iree
-
Notifications
You must be signed in to change notification settings - Fork 11
69 lines (60 loc) · 1.84 KB
/
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: 'Sync Upstream'
on:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
sync_upstream:
name: 'Sync Upstream'
runs-on: ubuntu-latest
steps:
- name: Checking out repository
uses: actions/checkout@v3
with:
token: ${{ secrets.CI_WRITE_TOKEN }}
repository: nod-ai/shark-runtime
ref: main
fetch-depth: 0
- name: Setup git
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "SHARK bot"
- name: Update main upstream
run: |
set -ex
git remote add upstream https://github.com/iree-org/iree
git pull --ff-only upstream main
- name: Pushing changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.CI_WRITE_TOKEN }}
branch: main
repository: nod-ai/shark-runtime
rebase_shark:
name: 'Rebase SHARK'
runs-on: ubuntu-latest
steps:
- name: Checking out repository
uses: actions/checkout@v3
with:
token: ${{ secrets.CI_WRITE_TOKEN }}
repository: nod-ai/shark-runtime
ref: shark
fetch-depth: 0
- name: Setup git
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "SHARK bot"
- name: Update shark upstream
run: |
set -ex
git remote add upstream https://github.com/iree-org/iree
git fetch upstream
git rebase upstream/main
- name: Pushing changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.CI_WRITE_TOKEN }}
branch: shark
repository: nod-ai/shark-runtime
force_with_lease: true