From 63d68b37d0e4ab600119cfd834fa311ecd4d5f66 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Wed, 18 Dec 2024 09:12:27 -0500 Subject: [PATCH] build: sync v22 and v23 --- .github/workflows/sync-22-23.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/sync-22-23.yml diff --git a/.github/workflows/sync-22-23.yml b/.github/workflows/sync-22-23.yml new file mode 100644 index 0000000000..2225511090 --- /dev/null +++ b/.github/workflows/sync-22-23.yml @@ -0,0 +1,35 @@ +name: Sync 23.x with 22.x +on: + push: + branches: + - release-22.x + workflow_dispatch: + +jobs: + sync-branches: + runs-on: ubuntu-latest + name: Syncing branches + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Node + uses: actions/setup-node@v4 + with: + node-version-file: '.nvmrc' + - name: Create Pull Request + id: cpr + uses: tretuna/sync-branches@1.4.0 + with: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + FROM_BRANCH: release-22.x + TO_BRANCH: release-23.x + - name: Auto-approve pull request for sync + uses: hmarr/auto-approve-action@v2 + with: + pull-request-number: ${{ steps.cpr.outputs.PULL_REQUEST_NUMBER }} + github-token: ${{ secrets.requirements_bot_github_token }} + - name: Enable Pull Request Automerge + uses: peter-evans/enable-pull-request-automerge@v2 + with: + token: ${{ secrets.requirements_bot_github_token }} + pull-request-number: ${{ steps.cpr.outputs.PULL_REQUEST_NUMBER }}