From f00bd702f1a47eaf3c983f82eecf8719613bb9b7 Mon Sep 17 00:00:00 2001 From: oliverbeumkes-nhs Date: Tue, 17 Mar 2026 11:54:18 +0000 Subject: [PATCH 1/3] [PRM-691] Add step to update floating taqg when not new Major version --- .github/workflows/tool-create-release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/tool-create-release.yml b/.github/workflows/tool-create-release.yml index 6091ef5d..995b450c 100644 --- a/.github/workflows/tool-create-release.yml +++ b/.github/workflows/tool-create-release.yml @@ -49,6 +49,16 @@ jobs: git tag $tag git push origin $tag + - name: Update floating tag (Minor Version's) + if: endsWith(env.tag, '.0.0') != true + run: | + git config user.name "github-actions" + git config user.email "github-actions@github.com" + floating_tag="v${tag%%.*}" + git tag -d $floating_tag + git tag -a $floating_tag -m "Floating tag for v${tag%%.*}" + git push origin $floating_tag + - name: Create new floating tag (Major Version) if: endsWith(env.tag, '.0.0') run: | From 6aeba825ef1ebe01850a8a794490bcffe06c211e Mon Sep 17 00:00:00 2001 From: chrisbloe Date: Tue, 17 Mar 2026 12:32:34 +0000 Subject: [PATCH 2/3] Floating tag fix --- .github/workflows/automated-main-merge.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/automated-main-merge.yml b/.github/workflows/automated-main-merge.yml index 80048aaf..eeb4eb1f 100644 --- a/.github/workflows/automated-main-merge.yml +++ b/.github/workflows/automated-main-merge.yml @@ -11,25 +11,25 @@ permissions: jobs: update-floating-tag: - name: Update floating tag to point to latest commit + name: Update floating tag to point to latest commit runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v6 with: - fetch-depth: 0 + fetch-depth: 0 - name: Check if floating tag exists id: check-floating-tag run: | git config user.name "github-actions" git config user.email "github-actions@github.com" - LATEST_TAG=$(git tag --list 'v*' --sort=-v:refname | head -n1) + LATEST_FLOATING_VERSION=$(git tag --list 'v*' --sort=-v:refname | head -n1) + floating_tag="v${LATEST_FLOATING_VERSION#v}" # strip the leading "v" if present echo "Found tag ${floating_tag} re-creating it to point to latest commit" - git tag -d v$floating_tag + git tag -d $floating_tag echo "${floating_tag} Deleted." - git tag -a v$floating_tag -m "Floating tag for v${floating_tag}" + git tag -a $floating_tag -m "Floating tag for ${floating_tag}" echo "${floating_tag} Re-created pointing to ${{github.sha}}." git push origin --tags echo "${floating_tag} Pushed." - From fd2e57fb2727d96dcc8cf91dca72e2ac7118fedb Mon Sep 17 00:00:00 2001 From: chrisbloe Date: Tue, 17 Mar 2026 12:34:52 +0000 Subject: [PATCH 3/3] typo --- .github/workflows/tool-create-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tool-create-release.yml b/.github/workflows/tool-create-release.yml index 995b450c..e9c06100 100644 --- a/.github/workflows/tool-create-release.yml +++ b/.github/workflows/tool-create-release.yml @@ -49,7 +49,7 @@ jobs: git tag $tag git push origin $tag - - name: Update floating tag (Minor Version's) + - name: Update floating tag (minor versions) if: endsWith(env.tag, '.0.0') != true run: | git config user.name "github-actions"