Skip to content
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,12 @@ jobs:

- name: Verify changes
run: |
git fetch --tags
echo $(git tag --sort=-v:refname)

current_tag=${GITHUB_REF#refs/tags/}
previous_tag=$(git tag --sort=-v:refname | head -n 2 | tail -n 1)
previous_tag=$(git tag --sort=-v:refname | head -n 3 | tail -n 1)

current_major=$(echo "$current_tag" | cut -d '.' -f 1)
previous_major=$(echo "$previous_tag" | cut -d '.' -f 1)
echo "Comparing $current_tag with $previous_tag..."
Expand Down
Loading