From ed1ce5c6b74d8926d406d01f7a9376d04b17ed20 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Tue, 4 Jul 2023 10:29:23 +0200 Subject: [PATCH 1/3] chore: use repository variable for setting the nightly schedule --- .github/workflows/nightly.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index bb0fed881..10c47fb26 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -1,10 +1,10 @@ name: 'dhis2: nightly' -# This workflow runs the e2e tests on the default branch against dev at 5:10am M-F +# This workflow runs the e2e tests on the default branch against dev on: schedule: - - cron: '10 5 * * 1-5' + - cron: ${{ vars.NIGHTLY_SCHEDULE }} workflow_dispatch: concurrency: From a91453224e29bacbafaa17eadc321ef74f6b6f72 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Tue, 4 Jul 2023 10:37:05 +0200 Subject: [PATCH 2/3] chore: only run on Tuesdays --- .github/workflows/nightly.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 10c47fb26..c8d1fc853 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -4,7 +4,7 @@ name: 'dhis2: nightly' on: schedule: - - cron: ${{ vars.NIGHTLY_SCHEDULE }} + - cron: '10 4 * * 2' workflow_dispatch: concurrency: From dbb62fc5af791db0f77de9dbe8eccdbb4257ca49 Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Tue, 4 Jul 2023 15:05:48 +0200 Subject: [PATCH 3/3] fix: disable scehduled nightly fo rnow --- .github/workflows/nightly.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index c8d1fc853..820f874e5 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -3,8 +3,8 @@ name: 'dhis2: nightly' # This workflow runs the e2e tests on the default branch against dev on: - schedule: - - cron: '10 4 * * 2' + # schedule: + # - cron: '10 4 * * 2' workflow_dispatch: concurrency: