Unverified Commit bc5cf6d7 authored by MatteoPologruto's avatar MatteoPologruto Committed by GitHub

[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: default avatarper1234 <accounts@perglass.com>

* Update .github/workflows/publish-go-tester-task.yml
Co-authored-by: default avatarper1234 <accounts@perglass.com>
Co-authored-by: default avatarper1234 <accounts@perglass.com>
parent f9a3b364
...@@ -39,10 +39,12 @@ jobs: ...@@ -39,10 +39,12 @@ jobs:
id: determination id: determination
run: | run: |
RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x" RELEASE_BRANCH_REGEX="refs/heads/[0-9]+.[0-9]+.x"
TAG_REGEX="refs/tags/.*"
# The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead. # The `create` event trigger doesn't support `branches` filters, so it's necessary to use Bash instead.
if [[ \ if [[ \
"${{ github.event_name }}" != "create" || \ ("${{ github.event_name }}" != "create" || \
"${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX \ "${{ github.ref }}" =~ $RELEASE_BRANCH_REGEX) && \
! "${{ github.ref }}" =~ $TAG_REGEX \
]]; then ]]; then
# Run the other jobs. # Run the other jobs.
RESULT="true" RESULT="true"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment