From 220654de8e95eb11a4755cb86500d4aec68b6e5d Mon Sep 17 00:00:00 2001 From: Devesh-Skyflow Date: Wed, 29 Jul 2026 17:27:32 +0530 Subject: [PATCH] SK-3023 fix internal-release infinite loop: [skip ci] on version-bump commit The internal-release workflow triggers on push to v3-release/*, and the reusable build pushes an automated version-bump commit back to the same branch. Since SK-2986 (#372) that push uses an admin PAT, and PAT-authored pushes DO trigger workflows (unlike GITHUB_TOKEN), so each bump re-triggered the release -> bump -> push -> loop (a new dev release every ~15-20s). Append [skip ci] to the automated internal-release commit message so the bump push no longer re-triggers CI. Keeps the PAT (preserving #372's branch-protection bypass fix); only the loop is broken. 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 e0193a9e..4cbfa6cf 100644 --- a/.github/workflows/shared-build-and-deploy.yml +++ b/.github/workflows/shared-build-and-deploy.yml @@ -118,7 +118,10 @@ jobs: git add v3/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