Skip to content

Commit d92d6ac

Browse files
authored
Merge pull request #295 from MatteoPologruto/tester-build-tag-run
Avoid running publish-go-tester-task if tag is set
2 parents 7d86d71 + dee8819 commit d92d6ac

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: workflow-templates/publish-go-tester-task.yml

+4-2
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 [[
44-
"${{ github.event_name }}" != "create" ||
45-
"${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX
45+
("${{ github.event_name }}" != "create" ||
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)