Skip to content

Commit c5305c0

Browse files
authored
Merge pull request #780 from per1234/tester-tag
Don't run "Publish Tester Build" workflow on tag push
2 parents 6662cce + 118443a commit c5305c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: .github/workflows/publish-go-tester-task.yml

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

0 commit comments

Comments
 (0)