From 6dbecf43e1f87a647366a9b1a75f1e619bff5ba3 Mon Sep 17 00:00:00 2001 From: Li Jie Date: Sat, 9 Mar 2024 18:15:44 +0800 Subject: [PATCH] ci: compatible with version difference of patch release --- .github/workflows/release-build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 4e972682a..b02c086e5 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -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"