Skip to content

Commit

Permalink
Remove master from publish.yml workflow
Browse files Browse the repository at this point in the history
Avoids problems if someone accidentally pushes a new master branch
  • Loading branch information
manics committed May 21, 2021
1 parent d2a180a commit 16305aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
name: Publish

# Trigger the workflow's on pushed tags or commits to main/master branch.
# Trigger the workflow's on pushed tags or commits to main branch.
on:
pull_request:
paths-ignore:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
# any tag
ref.startswith("refs/tags/")
# or default branch
or ref in {"refs/heads/main", "refs/heads/master"}
or ref == "refs/heads/main"}
)
):
publishing = "true"
Expand Down

0 comments on commit 16305aa

Please sign in to comment.