Skip to content

Commit

Permalink
chore: add workflow to merge beta branch to tier4 main (#239)
Browse files Browse the repository at this point in the history
* chore: add workflow to merge beta branch to tier4 main

Signed-off-by: tomoya.kimura <[email protected]>

* fix: fix workflow name

Signed-off-by: tomoya.kimura <[email protected]>

* fix: fix job name and pr-label

Signed-off-by: tomoya.kimura <[email protected]>

* fix: fix variable name

Signed-off-by: tomoya.kimura <[email protected]>

---------

Signed-off-by: tomoya.kimura <[email protected]>
  • Loading branch information
tkimura4 authored Sep 12, 2023
1 parent 360ef0f commit 9877b91
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/beta-to-tier4-main-sync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: beta-to-tier4-main-sync

on:
workflow_dispatch:
inputs:
source_branch:
description: Source branch
required: true
type: string

jobs:
sync-beta-branch:
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: tier4/main
sync-pr-branch: beta-to-tier4-main-sync
sync-target-repository: https://github.com/tier4/autoware_launch.git
sync-target-branch: ${{ inputs.source_branch }}
pr-title: "chore: sync beta branch ${{ inputs.source_branch }} with tier4/main"
pr-labels: |
bot
sync-beta-branch
auto-merge-method: merge

0 comments on commit 9877b91

Please sign in to comment.