Skip to content

Commit eeb345f

Browse files
authored
fix: regex for release tag (#342)
Fixes the regex used to validate the release tag for the CI pipeline. Was having trouble with a service name containing an embedded hyphen, like `content-publishing` or `content-watcher`.
1 parent a166a97 commit eeb345f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: |
3434
valid=false
3535
test_run=false
36-
ENTIRE_TAG_RE="^(([[:alpha:]]+)-)?(.*)$"
36+
ENTIRE_TAG_RE="^(([[:alpha:]\-]+)-)?(.*)$"
3737
VERSION_TAG_RE="^v[\.]?([[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+(-[[:alpha:][:digit:]\.]+)*)$"
3838
TAG="${{ github.event.release.tag_name }}"
3939
echo "Running with tag: ${TAG}"

0 commit comments

Comments
 (0)