From fd54a74bf47b085782e1791bae8377086247023f Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Tue, 30 Jan 2024 07:59:21 +0000 Subject: [PATCH] add logs Signed-off-by: Billy Zha --- .github/workflows/release-snap.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-snap.yml b/.github/workflows/release-snap.yml index 597170665..b8c673340 100644 --- a/.github/workflows/release-snap.yml +++ b/.github/workflows/release-snap.yml @@ -44,6 +44,7 @@ jobs: LAST=$(echo -e "$1\n$2" | sort -V | tail -n 1) # Check which number is the first and which is the last if [ "$FIRST" <> "$1" ]; then + echo "$1 is newer than $2" true fi fi @@ -54,9 +55,9 @@ jobs: # Get all tags starting with A tags=() while read -r tag; do - if [[ "$tag" == "$VERSION" ]]; then - continue - fi + if [[ "$tag" == "$VERSION" ]]; then + continue + fi tags+=("$tag") done < <(git tag -l 'v*') for T in "${tags[@]}"; do