From 2b84ff53b39436437c878441545e5d04b96184a6 Mon Sep 17 00:00:00 2001 From: Josiel Souza Date: Thu, 4 Jun 2026 15:25:59 +0100 Subject: [PATCH] fix(DTOSS-13089): exclude pre-releases when resolving latest release tag gh release list returns pre-releases by default, so a pr-* tag created by a review deploy could be picked up as the latest release for dev and preprod. Adding --exclude-pre-releases ensures only v* releases are resolved for non-review environments. --- .github/workflows/cicd-2-main-branch.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cicd-2-main-branch.yaml b/.github/workflows/cicd-2-main-branch.yaml index 3a72ff8b..40e80b33 100644 --- a/.github/workflows/cicd-2-main-branch.yaml +++ b/.github/workflows/cicd-2-main-branch.yaml @@ -80,6 +80,7 @@ jobs: LATEST_TAG=$(gh release list \ --repo "${{ github.repository }}" \ --limit 1 \ + --exclude-pre-releases \ --json tagName --jq '.[0].tagName' 2>/dev/null || echo "") if [[ -z "$LATEST_TAG" ]]; then echo "::error::No GitHub Release exists. Push a v* tag to create the first release."