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."