From 17214d30a95d92f6f402000142c4ae278ee0fcbc Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Wed, 4 Nov 2020 15:14:17 +0100 Subject: [PATCH] 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 --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2284539..0c85b26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -57,7 +57,7 @@ jobs: publish: needs: build - if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' + if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master') runs-on: ubuntu-latest steps: - name: Download Workflow Artifact [GitHub Actions]