Skip to content

Commit

Permalink
Update Publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueFinBima authored Feb 26, 2024
1 parent 8cdce31 commit 97fe065
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
echo "Current Tag: \"$currentTag\" is expected to be in the form \"#.#.####.###\". "

# latestTag=$(git tag -l sort=committerdate 1.6.${currentBranch:4}?.* | sort -r | head -1)
latestTag=$(git tag -l 1.6.${currentBranch:4}?.* | sort -V | tail -1)
latestTag=$(git tag -l 1.6.${currentBranch:4}?.* | sort --version-sort | tail -1)
echo "LatestTag: \"$latestTag\""

if [[ $latestTag != "1.6.${currentBranch:4}"* ]];then
Expand All @@ -62,7 +62,7 @@ jobs:
# this requires that the branch names are sequential, and don't miss a release.
echo "${currentBranch:2}"
echo "$((${currentBranch:4}-1))"
CheckTags=$(git tag -l sort=committerdate 1.6.$((${currentBranch:4}-1))?.* | sort -r | tail -1)
CheckTags=$(git tag -l sort=committerdate 1.6.$((${currentBranch:4}-1))?.* | sort --version-sort -r | head -1)
echo "PreviousTag=${CheckTags}" >> $GITHUB_ENV

- name: Display the version number
Expand Down

0 comments on commit 97fe065

Please sign in to comment.