Skip to content

Commit e323480

Browse files
committed
fix regex
1 parent 874a405 commit e323480

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci-tag.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
tags:
44
- '[0-9]+.[0-9]+.[0-9]+'
55
- '[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'
6-
- '[0-9]+.[0-9]+.[0-9]+-preview.[0-9]+'
76

87
name: ci-tag
98

@@ -22,7 +21,7 @@ jobs:
2221
with:
2322
repository: ${{ github.repository }}
2423
# Ignore preview or RC tags when searching for the latest
25-
regex: '^\d+\.\d+\.\d+$'
24+
regex: '^[0-9]+.[0-9]+.[0-9]+$'
2625
releases-only: false
2726
- name: Set output
2827
run: echo "latest-tag=${{ steps.latest-tag.outputs.tag }}"
@@ -39,7 +38,7 @@ jobs:
3938
continue-on-error: true
4039
with:
4140
repository: ${{ github.repository }}
42-
regex: '^\d+\.\d+\.\d+-rc\.\d+$'
41+
regex: '^[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+$'
4342
releases-only: false
4443
- name: Set output
4544
run: echo "latest-rc=${{ steps.latest-rc.outputs.tag }}"

0 commit comments

Comments
 (0)