Skip to content

Commit

Permalink
Merge pull request #1804 from cpunion/ignore-patch-version-consistency
Browse files Browse the repository at this point in the history
ci: compatible with version difference of patch release
  • Loading branch information
xushiwei authored Mar 9, 2024
2 parents 1ca6e23 + 6dbecf4 commit 22dc90b
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 22dc90b

Please sign in to comment.