Skip to content

Commit

Permalink
Merge pull request #1805 from goplus/main
Browse files Browse the repository at this point in the history
release patch
  • Loading branch information
xushiwei authored Mar 9, 2024
2 parents 7367305 + 22dc90b commit b20ff5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
tag=$(git describe --tags --dirty)
version=$(cat VERSION)
if [ "$tag" != "$version" ]; then
# if tag is vX.Y.Z-pN and version is vX.Y.Z then it's ok
if [[ $tag == $version-p* ]] && [[ ${tag#"$version"} =~ ^-p[0-9]+$ ]] then
echo "This is a patch version"
exit 0
fi
echo "VERSION file is not consistent with tag name"
echo "VERSION: $version"
echo "TAG: $tag"
Expand Down

0 comments on commit b20ff5f

Please sign in to comment.