Skip to content

Commit a42ba9f

Browse files
authored
Merge pull request #36 from bcmi-labs/run-publish-only-from-master
Manual builds must not publish when not on master.
2 parents ed06b38 + 17214d3 commit a42ba9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757

5858
publish:
5959
needs: build
60-
if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
60+
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')
6161
runs-on: ubuntu-latest
6262
steps:
6363
- name: Download Workflow Artifact [GitHub Actions]

0 commit comments

Comments
 (0)