Skip to content

Commit 7536c3a

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
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 <kittaakos@typefox.io>
1 parent ec7df88 commit 7536c3a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- master
77
tags:
88
- '[0-9]+.[0-9]+.[0-9]+*'
9+
workflow_dispatch:
910
pull_request:
1011
branches:
1112
- master
@@ -58,7 +59,7 @@ jobs:
5859
AC_PASSWORD: ${{ secrets.AC_PASSWORD }}
5960
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
6061
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
61-
IS_NIGHTLY: ${{ github.event_name == 'schedule' }}
62+
IS_NIGHTLY: ${{ github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master') }}
6263
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/') }}
6364
run: |
6465
# electron-builder will try to sign during the Windows job if these environment variables are defined
@@ -78,7 +79,7 @@ jobs:
7879

7980
publish:
8081
needs: build
81-
if: github.event_name == 'schedule'
82+
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == 'refs/heads/master')
8283
runs-on: ubuntu-latest
8384
steps:
8485
- name: Download [GitHub Actions]

0 commit comments

Comments
 (0)