Skip to content

Commit 17214d3

Browse files
author
Akos Kitta
committed
Manual builds must not publish when not on master.
Only CRON job and `workflow_dispatch` from the `master` should publish a new nightly to AWS. Signed-off-by: Akos Kitta <[email protected]>
1 parent ed06b38 commit 17214d3

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)