Skip to content

Commit f341f72

Browse files
committed
fix: regex for parsing versions
1 parent 3fd706c commit f341f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci_cd_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ jobs:
5858
5959
- name: "Remove MAJOR tag"
6060
run: |
61-
if git tag -l | grep -q "^v${{ env.MAJOR }}"; then
61+
if git tag -l | grep -q "^v${{ env.MAJOR }}$"; then
6262
git push --delete origin v${{ env.MAJOR }}
6363
else
6464
echo -e "Tag v${{ env.MAJOR }} does not exist, skipping deletion."
6565
fi
6666
6767
- name: "Remove MAJOR.MINOR tag"
6868
run: |
69-
if git tag -l | grep -q "^v${{ env.MAJOR }}\.${{ env.MINOR }}"; then
69+
if git tag -l | grep -q "^v${{ env.MAJOR }}\.${{ env.MINOR }}$"; then
7070
git push --delete origin v${{ env.MAJOR }}.${{ env.MINOR }}
7171
else
7272
echo -e "Tag v${{ env.MAJOR }}.${{ env.MINOR }} does not exist, skipping deletion."

0 commit comments

Comments
 (0)