From 7536c3a48570e460c0c1c7fc3647e61574cd2094 Mon Sep 17 00:00:00 2001 From: Akos Kitta Date: Wed, 26 Aug 2020 13:28:19 +0200 Subject: [PATCH] ATL-423: Can execute the nightly manually. We consider a build as nightly, if was started by the CRON job, or was manually triggered from the master branch. Signed-off-by: Akos Kitta --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 60648098..6570201c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,7 @@ on: - master tags: - '[0-9]+.[0-9]+.[0-9]+*' + workflow_dispatch: pull_request: branches: - master @@ -58,7 +59,7 @@ jobs: AC_PASSWORD: ${{ secrets.AC_PASSWORD }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - IS_NIGHTLY: ${{ github.event_name == 'schedule' }} + IS_NIGHTLY: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master') }} IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') }} run: | # electron-builder will try to sign during the Windows job if these environment variables are defined @@ -78,7 +79,7 @@ jobs: publish: needs: build - if: github.event_name == 'schedule' + if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master') runs-on: ubuntu-latest steps: - name: Download [GitHub Actions]