Skip to content

Commit 28e5cfa

Browse files
Avoid running publish-go-tester-task if tag is set
1 parent e495172 commit 28e5cfa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

workflow-templates/publish-go-tester-task.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,12 @@ jobs:
3939
id: determination
4040
run: |
4141
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
42+
TAG_REGEX="refs/tags/.*"
4243
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
4344
if [[
4445
"${{ github.event_name }}" != "create" ||
45-
"${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
46+
"${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX && \
47+
! "${{ github.ref }}" =~ $TAG_REGEX \
4648
]]; then
4749
# Run the other jobs.
4850
RESULT="true"

0 commit comments

Comments
 (0)