Skip to content

Commit 64d8599

Browse files
committed
Make GitHub action advance 'main' branch as well
1 parent 823b495 commit 64d8599

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/advance_mainline.yaml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@ on:
77
workflow_dispatch:
88

99
jobs:
10+
advance_main:
11+
name: "Advance main"
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checking out repository
15+
uses: actions/checkout@v2
16+
with:
17+
token: ${{ secrets.WRITE_ACCESS_TOKEN }}
18+
ref: main
19+
20+
- name: Pull upstream main
21+
run: |
22+
git remote add upstream https://github.com/llvm/llvm-project.git
23+
git fetch upstream main
24+
git pull --ff-only upstream main
25+
26+
- name: Pushing changes
27+
uses: ad-m/github-push-action@v0.6.0
28+
with:
29+
github_token: ${{ secrets.WRITE_ACCESS_TOKEN }}
30+
branch: main
31+
1032
advance_mainline:
1133
name: "Advance mainline"
1234
runs-on: ubuntu-20.04
@@ -17,7 +39,7 @@ jobs:
1739
token: ${{ secrets.WRITE_ACCESS_TOKEN }}
1840
ref: mainline
1941

20-
- name: Pull upstream main
42+
- name: Pull upstream mainline
2143
run: |
2244
git remote add upstream https://github.com/llvm/llvm-project.git
2345
git fetch upstream main

0 commit comments

Comments
 (0)