From f48c3c3967d833a3eb73e66f608dd8adbe442094 Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Tue, 30 Jan 2024 07:53:41 +0000 Subject: [PATCH] skip same tag Signed-off-by: Billy Zha --- .github/workflows/release-snap.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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