From 362ddb0d1388dd802e8a00a87eb02ae06261ea9f Mon Sep 17 00:00:00 2001 From: Adish M <44204658+adishM98@users.noreply.github.com> Date: Mon, 30 Jun 2025 18:13:01 +0530 Subject: [PATCH] Update updating-dockertag.yml (#13123) --- .github/workflows/updating-dockertag.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/updating-dockertag.yml b/.github/workflows/updating-dockertag.yml index 65dbe3edca..d13089bbbb 100644 --- a/.github/workflows/updating-dockertag.yml +++ b/.github/workflows/updating-dockertag.yml @@ -39,9 +39,13 @@ jobs: body: "Automated update of the LTS version table from DockerHub." base: develop - - name: 🤖 Enable auto-merge for the PR - uses: peter-evans/enable-pull-request-automerge@v3 - with: - token: ${{ secrets.TOKEN_PR }} - pull-request-number: ${{ steps.cpr.outputs.pull-request-number }} - merge-method: squash + - name: 🤖 Auto-merge the PR (fallback if needed) + run: | + echo "â„šī¸ Attempting auto-merge of PR #${PR_NUMBER}..." + gh pr merge --squash --auto "$PR_NUMBER" --repo ToolJet/ToolJet || { + echo "âš ī¸ Auto-merge failed. Trying direct squash merge instead..." + gh pr merge --squash --admin "$PR_NUMBER" --repo ToolJet/ToolJet + } + env: + GH_TOKEN: ${{ secrets.TOKEN_PR }} + PR_NUMBER: ${{ steps.cpr.outputs.pull-request-number }}