Skip to content

Commit

Permalink
ci: add sync-beta-upstream (#459)
Browse files Browse the repository at this point in the history
* ci: add sync-beta-upstream

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* style(pre-commit): autofix

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
shmpwk and pre-commit-ci[bot] authored Jun 25, 2024
1 parent 054f1a5 commit ac6cc16
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/sync-beta-upstream.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow is intended for the use in the repositories created by forking tier4/autoware_launch.
name: sync-beta-upstream

on:
schedule:
- cron: 0 20 * * *
workflow_dispatch:

jobs:
sync-tier4-upstream:
runs-on: ubuntu-latest
steps:
- name: Generate token
id: generate-token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.PRIVATE_KEY }}

- name: Run sync-branches
uses: autowarefoundation/autoware-github-actions/sync-branches@v1
with:
token: ${{ steps.generate-token.outputs.token }}
base-branch: beta/<version>
sync-pr-branch: sync-beta-upstream
sync-target-repository: https://github.com/tier4/autoware_launch.git
sync-target-branch: beta/<version>
pr-title: "chore: sync beta upstream"
pr-labels: |
bot
sync-tier4-upstream
auto-merge-method: merge

0 comments on commit ac6cc16

Please sign in to comment.