diff --git a/.github/workflows/dispatch-ci.yml b/.github/workflows/dispatch-ci.yml index 3af7f069..baf990fc 100644 --- a/.github/workflows/dispatch-ci.yml +++ b/.github/workflows/dispatch-ci.yml @@ -1,9 +1,11 @@ name: Dispatch CI on: - # At 2:10 PM UTC, only on Sunday and Monday + # At 8:40 AM UTC, only on Friday and Saturday schedule: - - cron: '10 14 * * 0,1' + - cron: '40 8 * * 5,6' + +permissions: {} jobs: dispatch-ci: @@ -11,6 +13,9 @@ jobs: # Only run cron on the silverstripe account if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest + permissions: + contents: read + actions: write steps: - name: Dispatch CI uses: silverstripe/gha-dispatch-ci@v1 diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index 6a783b1d..958ed451 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -1,10 +1,12 @@ name: Keepalive on: - workflow_dispatch: - # The 8th of every month at 2:50pm UTC + # At 5:25 AM UTC, on day 6 of the month schedule: - - cron: '50 14 8 * *' + - cron: '25 5 6 * *' + workflow_dispatch: + +permissions: {} jobs: keepalive: @@ -12,6 +14,8 @@ jobs: # Only run cron on the silverstripe account if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest + permissions: + actions: write steps: - name: Keepalive uses: silverstripe/gha-keepalive@v1 diff --git a/.github/workflows/merge-up.yml b/.github/workflows/merge-up.yml deleted file mode 100644 index 169bec61..00000000 --- a/.github/workflows/merge-up.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Merge-up - -on: - # At 2:20 PM UTC, only on Saturday - schedule: - - cron: '20 14 * * 6' - workflow_dispatch: - -jobs: - merge-up: - name: Merge-up - # Only run cron on the silverstripe account - if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') - runs-on: ubuntu-latest - steps: - - name: Merge-up - uses: silverstripe/gha-merge-up@v1