From d53ba613cbb74c64d49e9e2bbe05ebd76422cbf4 Mon Sep 17 00:00:00 2001 From: shalithchamantha Date: Mon, 28 Jul 2025 17:24:35 -0500 Subject: [PATCH] Insert automerge to sync workflow --- .github/workflows/sync-metadata.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-metadata.yml b/.github/workflows/sync-metadata.yml index 25d8a3b..fcba906 100644 --- a/.github/workflows/sync-metadata.yml +++ b/.github/workflows/sync-metadata.yml @@ -39,4 +39,17 @@ jobs: with: branch: sync-all-metadata title: "Nightly Sync: all_metadata.json" - body: "Automated pull request syncing metadata from source repo" + body: "Automated pull request syncing metadata from source repo" + delete-branch: false + + + auto_merge: + needs: nightly-sync + runs-on: ubuntu-latest + if: needs.nightly-sync.outputs.pull-request-number != '' + steps: + -name: Enable Auto-Merge + uses: peter-evans/enable-pull-request-automerge@v3 + with: + pull-request-number: ${{ needs.nightly-sync.outputs.pull-request-number }} + merge-method: merge