Skip to content

Commit

Permalink
fix(apps/prod/tekton/configs/tasks): fix task `pingcap-get-set-releas…
Browse files Browse the repository at this point in the history
…e-version` for hotfix cases

Signed-off-by: wuhuizuo <[email protected]>
  • Loading branch information
wuhuizuo committed Sep 27, 2024
1 parent 1075f0b commit b364aa7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ spec:
echo "Delete the none-standard tags"
if git tag | grep -E "v[0-9]+[.][0-9]+[.][0-9]+(-(alpha|beta|fips))?$" > /dev/null; then
# Only delete the none-standard tags when the repo has standard semver tags.
git tag | grep -vE "^v[0-9]+[.][0-9]+[.][0-9]+(-(alpha|beta|fips))?$" | xargs git tag -d || true
git tag | grep -vE "^v[0-9]+[.][0-9]+[.][0-9]+(-(alpha|beta|fips|202[1-9][0-1][0-9][0-3][0-9]-[0-9a-f]{7,10}))?$" | xargs git tag -d || true
fi
RESULT_VERSION="$(git describe --tags --always --dirty --exclude 'v20[0-9][0-9].[0-1][0-9].[0-3][0-9]*')"
Expand Down

0 comments on commit b364aa7

Please sign in to comment.