Skip to content

Commit c5f0a24

Browse files
authored
chore: fix sync-awf-latest.yaml (#1784)
Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
1 parent dd4606b commit c5f0a24

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

.github/workflows/sync-awf-latest.yaml

+17-13
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,22 @@ jobs:
99
sync-awf-latest:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- name: Generate token
13+
id: generate-token
14+
uses: tibdex/github-app-token@v1
1315
with:
14-
token: ${{ secrets.TOKEN_TO_MODIFY_WOKFLOW }}
15-
fetch-depth: 0
16-
- name: Commit Results
17-
run: |
18-
git config --local user.email "action@github.com"
19-
git config --local user.name "GitHub Action"
16+
app_id: ${{ secrets.APP_ID }}
17+
private_key: ${{ secrets.PRIVATE_KEY }}
2018

21-
git checkout awf-latest
22-
git remote add awf https://github.com/autowarefoundation/autoware.universe
23-
git fetch awf main
24-
git rebase awf/main
25-
26-
git push origin awf-latest --force
19+
- name: Run sync-branches
20+
uses: autowarefoundation/autoware-github-actions/sync-branches@v1
21+
with:
22+
token: ${{ steps.generate-token.outputs.token }}
23+
base-branch: awf-latest
24+
sync-pr-branch: sync-awf-latest
25+
sync-target-repository: https://github.com/autowarefoundation/autoware.universe.git
26+
sync-target-branch: main
27+
pr-title: "chore: sync awf-latest"
28+
pr-labels: |
29+
bot
30+
auto-merge-method: merge

0 commit comments

Comments
 (0)