Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/internal-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ on:

jobs:
build-and-deploy:
# Skip the automated version-bump commit so it can't re-trigger this workflow.
# The bump is pushed with a PAT (which, unlike GITHUB_TOKEN, DOES trigger workflows),
# so without this guard the release loops: bump -> push -> release -> bump -> ...
if: ${{ !contains(github.event.head_commit.message, '[AUTOMATED]') }}
uses: ./.github/workflows/shared-build-and-deploy.yml
with:
ref: ${{ github.ref_name }}
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/shared-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,11 @@ jobs:

git add pom.xml
if [[ "${{ inputs.tag }}" == "internal" ]]; then
# [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]"
# The '[AUTOMATED]' marker is what stops the release loop: internal-release.yml
# skips any push whose head commit contains it (the bump is pushed with a PAT,
# which — unlike GITHUB_TOKEN — DOES trigger workflows). Keep the marker in sync
# with that guard. This keeps PR CI intact (no global skip).
git commit -m "[AUTOMATED] Private Release ${{ steps.previoustag.outputs.tag }}-dev-$(git rev-parse --short $GITHUB_SHA)"
git push origin ${{ github.ref_name }} -f
fi
if [[ "${{ inputs.tag }}" == "beta" || "${{ inputs.tag }}" == "public" ]]; then
Expand Down
Loading