From 96058c4fd838cae440e0921fa406c7d1fc950e21 Mon Sep 17 00:00:00 2001 From: Tomohito Ando Date: Mon, 23 Jan 2023 21:37:24 +0900 Subject: [PATCH 1/4] ci: add ci to sync tier4/universe -> micro-bus Signed-off-by: Tomohito Ando --- .github/workflows/sync-tier4-universe.yaml | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/sync-tier4-universe.yaml diff --git a/.github/workflows/sync-tier4-universe.yaml b/.github/workflows/sync-tier4-universe.yaml new file mode 100644 index 0000000..9601c58 --- /dev/null +++ b/.github/workflows/sync-tier4-universe.yaml @@ -0,0 +1,31 @@ +name: sync-micro-bus + +on: + schedule: + - cron: 0 0 * * * + workflow_dispatch: + +jobs: + sync-micro-bus: + 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: micro-bus + sync-pr-branch: sync-micro-bus + sync-target-repository: https://github.com/tier4/autoware_launch/blob/awf-latest/.github/workflows/sync-awf-latest.yaml + sync-target-branch: tier4/universe + pr-title: "chore: sync-micro-bus" + pr-labels: | + bot + sync-micro-bus + auto-merge-method: merge From f7f375e7846d76650211df77b648128b4dc20864 Mon Sep 17 00:00:00 2001 From: Tomohito Ando Date: Mon, 23 Jan 2023 21:45:10 +0900 Subject: [PATCH 2/4] chore: disable auto merge Signed-off-by: Tomohito Ando --- .github/workflows/sync-tier4-universe.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/sync-tier4-universe.yaml b/.github/workflows/sync-tier4-universe.yaml index 9601c58..9e0726c 100644 --- a/.github/workflows/sync-tier4-universe.yaml +++ b/.github/workflows/sync-tier4-universe.yaml @@ -28,4 +28,3 @@ jobs: pr-labels: | bot sync-micro-bus - auto-merge-method: merge From bbfe751a8a7b9714a89ddd28447ddadd4bfa601c Mon Sep 17 00:00:00 2001 From: Tomohito Ando Date: Tue, 24 Jan 2023 10:40:07 +0900 Subject: [PATCH 3/4] chore: change file name Signed-off-by: Tomohito Ando --- .../workflows/{sync-tier4-universe.yaml => sync-micro-bus.yaml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{sync-tier4-universe.yaml => sync-micro-bus.yaml} (100%) diff --git a/.github/workflows/sync-tier4-universe.yaml b/.github/workflows/sync-micro-bus.yaml similarity index 100% rename from .github/workflows/sync-tier4-universe.yaml rename to .github/workflows/sync-micro-bus.yaml From 597368029f6d340ab3b4e549c6ba366a945eee49 Mon Sep 17 00:00:00 2001 From: Tomohito Ando Date: Tue, 24 Jan 2023 10:41:29 +0900 Subject: [PATCH 4/4] fix sync target repository Signed-off-by: Tomohito Ando --- .github/workflows/sync-micro-bus.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sync-micro-bus.yaml b/.github/workflows/sync-micro-bus.yaml index 9e0726c..feeac3a 100644 --- a/.github/workflows/sync-micro-bus.yaml +++ b/.github/workflows/sync-micro-bus.yaml @@ -22,7 +22,7 @@ jobs: token: ${{ steps.generate-token.outputs.token }} base-branch: micro-bus sync-pr-branch: sync-micro-bus - sync-target-repository: https://github.com/tier4/autoware_launch/blob/awf-latest/.github/workflows/sync-awf-latest.yaml + sync-target-repository: https://github.com/tier4/tier4_ad_api_adaptor sync-target-branch: tier4/universe pr-title: "chore: sync-micro-bus" pr-labels: |