From c9f55618b87000ec04961224cbba2485077b140e Mon Sep 17 00:00:00 2001 From: Autumn60 <37181352+Autumn60@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:23:25 +0900 Subject: [PATCH] create sync-upstream.yaml --- .github/workflows/sync-upstream.yaml | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/sync-upstream.yaml diff --git a/.github/workflows/sync-upstream.yaml b/.github/workflows/sync-upstream.yaml new file mode 100644 index 0000000..038a88d --- /dev/null +++ b/.github/workflows/sync-upstream.yaml @@ -0,0 +1,31 @@ +name: sync-upstream + +on: + schedule: + - cron: 0 0 * * * + workflow_dispatch: + +jobs: + sync-upstream: + runs-on: ubuntu-latest + steps: + - name: Generate token + id: generate-token + uses: tibdex/github-app-token@v2 + 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: main + sync-pr-branch: sync-upstream + sync-target-repository: https://github.com/Fool-Stuck/wheel_stuck_ws.git + sync-target-branch: main + pr-title: "chore: sync upstream" + pr-labels: | + bot + sync-upstream + auto-merge-method: merge