diff --git a/.github/workflows/release-snap.yml b/.github/workflows/release-snap.yml index 60bd37811..597170665 100644 --- a/.github/workflows/release-snap.yml +++ b/.github/workflows/release-snap.yml @@ -54,12 +54,14 @@ jobs: # Get all tags starting with A tags=() while read -r tag; do - # Append each tag to the array + if [[ "$tag" == "$VERSION" ]]; then + continue + fi tags+=("$tag") done < <(git tag -l 'v*') for T in "${tags[@]}"; do if ! compare "$VERSION" "$T"; then - echo "$VERSION is older than $T, aborting build and release" + echo "$VERSION is not newer than $T, aborting build and release to latest" exit 1 fi done