From f5611d3eb63e54625cb923ddb7ac7b7d143ef78f Mon Sep 17 00:00:00 2001 From: Devesh-Skyflow Date: Wed, 29 Jul 2026 17:31:52 +0530 Subject: [PATCH] SK-3023 fix internal-release infinite loop on main: [skip ci] on version-bump commit Same fix as #377 (applied to v3-release/26.7.29), now on main so future release branches cut from main don't reintroduce the loop. The internal-release path bumps the version and force-pushes an automated commit back to the branch using an admin PAT. PAT-authored pushes DO trigger workflows (unlike GITHUB_TOKEN), so the bump re-triggers the release -> bump -> push -> infinite loop. Appending [skip ci] to the automated commit message breaks it while keeping the PAT (preserving the branch-protection bypass fix). Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/shared-build-and-deploy.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/shared-build-and-deploy.yml b/.github/workflows/shared-build-and-deploy.yml index 59c35767..89e6e8b4 100644 --- a/.github/workflows/shared-build-and-deploy.yml +++ b/.github/workflows/shared-build-and-deploy.yml @@ -106,7 +106,10 @@ jobs: git add pom.xml if [[ "${{ inputs.tag }}" == "internal" ]]; then - git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)" + # [skip ci]: the version-bump push uses a PAT (see checkout above), and PAT-authored + # pushes DO trigger workflows (unlike GITHUB_TOKEN). Without this marker the push + # re-triggers this same internal-release workflow -> bump -> push -> infinite loop. + git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA) [skip ci]" git push origin ${{ github.ref_name }} -f fi if [[ "${{ inputs.tag }}" == "beta" || "${{ inputs.tag }}" == "public" ]]; then