Skip to content

Commit

Permalink
skip same tag
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Jan 30, 2024
1 parent 44a9873 commit f48c3c3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-snap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f48c3c3

Please sign in to comment.