Skip to content

Commit 9ec756a

Browse files
kenji-miyakeboyali
authored andcommitted
ci: add sync-upstream.yaml (#4)
Signed-off-by: Kenji Miyake <kenji.miyake@tier4.jp>
1 parent c0403f2 commit 9ec756a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/sync-upstream.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: sync-upstream
2+
3+
on:
4+
schedule:
5+
- cron: 0 19 * * * # run at 4 AM JST
6+
workflow_dispatch:
7+
8+
jobs:
9+
sync-upstream:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Generate token
13+
id: generate-token
14+
uses: tibdex/github-app-token@v1
15+
with:
16+
app_id: ${{ secrets.APP_ID }}
17+
private_key: ${{ secrets.PRIVATE_KEY }}
18+
19+
- name: Run sync-branches
20+
uses: autowarefoundation/autoware-github-actions/sync-branches@tier4/proposal
21+
with:
22+
token: ${{ steps.generate-token.outputs.token }}
23+
base-branch: tier4/main
24+
sync-pr-branch: sync-upstream
25+
sync-target-repository: https://github.com/autowarefoundation/autoware.universe.git
26+
sync-target-branch: tier4/proposal
27+
pr-title: "chore: sync upstream"
28+
auto-merge-method: merge

0 commit comments

Comments
 (0)