Skip to content

Commit 35bb49f

Browse files
committed
Remove master from publish.yml workflow
Avoids problems if someone accidentally pushes a new master branch
1 parent d2a180a commit 35bb49f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
name: Publish
55

6-
# Trigger the workflow's on pushed tags or commits to main/master branch.
6+
# Trigger the workflow on pushed tags or commits to main branch.
77
on:
88
pull_request:
99
paths-ignore:
@@ -60,7 +60,7 @@ jobs:
6060
# any tag
6161
ref.startswith("refs/tags/")
6262
# or default branch
63-
or ref in {"refs/heads/main", "refs/heads/master"}
63+
or ref == "refs/heads/main"
6464
)
6565
):
6666
publishing = "true"

0 commit comments

Comments
 (0)