From ac6cc1658b4702a9deb96d10bda1a4460e9e0eae Mon Sep 17 00:00:00 2001 From: Shumpei Wakabayashi <42209144+shmpwk@users.noreply.github.com> Date: Tue, 25 Jun 2024 09:46:51 +0900 Subject: [PATCH] ci: add sync-beta-upstream (#459) * ci: add sync-beta-upstream Signed-off-by: Shumpei Wakabayashi * style(pre-commit): autofix --------- Signed-off-by: Shumpei Wakabayashi Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/workflows/sync-beta-upstream.yaml | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/sync-beta-upstream.yaml diff --git a/.github/workflows/sync-beta-upstream.yaml b/.github/workflows/sync-beta-upstream.yaml new file mode 100644 index 0000000000..25b83306ca --- /dev/null +++ b/.github/workflows/sync-beta-upstream.yaml @@ -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/ + sync-pr-branch: sync-beta-upstream + sync-target-repository: https://github.com/tier4/autoware_launch.git + sync-target-branch: beta/ + pr-title: "chore: sync beta upstream" + pr-labels: | + bot + sync-tier4-upstream + auto-merge-method: merge