Skip to content

Commit a80f66c

Browse files
Merge pull request #126 from NHSDigital/DTOSS-13089/fix-pr-prerelease-leaking-to-dev-preprod-prod
[DTOSS-13089]: fix:exclude pre-releases when resolving latest release tag
2 parents 3c3bdd1 + 2b84ff5 commit a80f66c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/cicd-2-main-branch.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
LATEST_TAG=$(gh release list \
8181
--repo "${{ github.repository }}" \
8282
--limit 1 \
83+
--exclude-pre-releases \
8384
--json tagName --jq '.[0].tagName' 2>/dev/null || echo "")
8485
if [[ -z "$LATEST_TAG" ]]; then
8586
echo "::error::No GitHub Release exists. Push a v* tag to create the first release."

0 commit comments

Comments
 (0)