Skip to content

Commit dcb1fbd

Browse files
committed
Validate tag for releases
Check that the tag matches the expected format. Signed-off-by: thc202 <thc202@gmail.com>
1 parent 276176c commit dcb1fbd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

addOns/addOns.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ subprojects {
7070
}
7171

7272
System.getenv("GITHUB_REF")?.let { ref ->
73-
if ("refs/tags/" !in ref) {
73+
if ("refs/tags/" !in ref || !ref.contains(Regex(".*-v.*"))) {
7474
return@let
7575
}
7676

0 commit comments

Comments
 (0)