Skip to content

Commit bc5cf6d

Browse files
[skip-changelog] Avoid running publish-go-tester-task if tag is set (#1984)
* Avoid running publish-go-tester-task if tag is set * Update .github/workflows/publish-go-tester-task.yml Co-authored-by: per1234 <[email protected]> * Update .github/workflows/publish-go-tester-task.yml Co-authored-by: per1234 <[email protected]> Co-authored-by: per1234 <[email protected]>
1 parent f9a3b36 commit bc5cf6d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/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)