From 2dda6a509b7bcf7a704417c8845c157b210e68dd Mon Sep 17 00:00:00 2001 From: nicktrn <55853254+nicktrn@users.noreply.github.com> Date: Wed, 23 Aug 2023 13:13:22 +0100 Subject: [PATCH] chore: cron workflow tidying (#10127) --- .github/workflows/cron-bookingReminder.yml | 6 +++--- .github/workflows/cron-downgradeUsers.yml | 4 ++-- .github/workflows/cron-scheduleEmailReminders.yml | 6 +++--- .github/workflows/cron-scheduleSMSReminders.yml | 6 +++--- .github/workflows/cron-scheduleWhatsappReminders.yml | 6 +++--- .github/workflows/cron-stale-issue.yml | 2 +- .github/workflows/cron-syncAppMeta.yml | 4 ++-- .github/workflows/submodule-sync.yml | 1 + 8 files changed, 18 insertions(+), 17 deletions(-) diff --git a/.github/workflows/cron-bookingReminder.yml b/.github/workflows/cron-bookingReminder.yml index 7f7d461819..ff6384bc59 100644 --- a/.github/workflows/cron-bookingReminder.yml +++ b/.github/workflows/cron-bookingReminder.yml @@ -4,8 +4,8 @@ on: # "Scheduled workflows run on the latest commit on the default or base branch." # — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule schedule: - # Runs “At minute 0, 15, 30, and 45.” (see https://crontab.guru) - - cron: "0,15,30,45 * * * *" + # Runs "At every 15th minute." (see https://crontab.guru) + - cron: "*/15 * * * *" jobs: cron-bookingReminder: env: @@ -20,4 +20,4 @@ jobs: -X POST \ -H 'content-type: application/json' \ -H 'authorization: ${{ secrets.CRON_API_KEY }}' \ - --fail + -sSf diff --git a/.github/workflows/cron-downgradeUsers.yml b/.github/workflows/cron-downgradeUsers.yml index c4a782f0d5..d5c2984b36 100644 --- a/.github/workflows/cron-downgradeUsers.yml +++ b/.github/workflows/cron-downgradeUsers.yml @@ -5,7 +5,7 @@ on: # "Scheduled workflows run on the latest commit on the default or base branch." # — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule schedule: - # Runs “Every month at 1st (see https://crontab.guru) + # Runs "At 00:00 on day-of-month 1." (see https://crontab.guru) - cron: "0 0 1 * *" jobs: cron-downgradeUsers: @@ -21,4 +21,4 @@ jobs: -X POST \ -H 'content-type: application/json' \ -H 'authorization: ${{ secrets.CRON_API_KEY }}' \ - --fail + -sSf diff --git a/.github/workflows/cron-scheduleEmailReminders.yml b/.github/workflows/cron-scheduleEmailReminders.yml index dc77c2d5dd..8dacefe3d1 100644 --- a/.github/workflows/cron-scheduleEmailReminders.yml +++ b/.github/workflows/cron-scheduleEmailReminders.yml @@ -4,8 +4,8 @@ on: # "Scheduled workflows run on the latest commit on the default or base branch." # — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule schedule: - # Runs “At minute 0, 15, 30, and 45.” (see https://crontab.guru) - - cron: "0,15,30,45 * * * *" + # Runs "At every 15th minute." (see https://crontab.guru) + - cron: "*/15 * * * *" jobs: cron-scheduleEmailReminders: env: @@ -20,4 +20,4 @@ jobs: -X POST \ -H 'content-type: application/json' \ -H 'authorization: ${{ secrets.CRON_API_KEY }}' \ - --fail + -sSf diff --git a/.github/workflows/cron-scheduleSMSReminders.yml b/.github/workflows/cron-scheduleSMSReminders.yml index 392a9cf5ec..bf435cf3e8 100644 --- a/.github/workflows/cron-scheduleSMSReminders.yml +++ b/.github/workflows/cron-scheduleSMSReminders.yml @@ -4,8 +4,8 @@ on: # "Scheduled workflows run on the latest commit on the default or base branch." # — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule schedule: - # Runs “At minute 0, 15, 30, and 45.” (see https://crontab.guru) - - cron: "0,15,30,45 * * * *" + # Runs "At every 15th minute." (see https://crontab.guru) + - cron: "*/15 * * * *" jobs: cron-scheduleSMSReminders: env: @@ -20,4 +20,4 @@ jobs: -X POST \ -H 'content-type: application/json' \ -H 'authorization: ${{ secrets.CRON_API_KEY }}' \ - --fail + -sSf diff --git a/.github/workflows/cron-scheduleWhatsappReminders.yml b/.github/workflows/cron-scheduleWhatsappReminders.yml index ca12b21812..7df945abed 100644 --- a/.github/workflows/cron-scheduleWhatsappReminders.yml +++ b/.github/workflows/cron-scheduleWhatsappReminders.yml @@ -4,8 +4,8 @@ on: # "Scheduled workflows run on the latest commit on the default or base branch." # — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule schedule: - # Runs “At minute 0, 15, 30, and 45.” (see https://crontab.guru) - - cron: "0,15,30,45 * * * *" + # Runs "At every 15th minute." (see https://crontab.guru) + - cron: "*/15 * * * *" jobs: cron-scheduleWhatsappReminders: env: @@ -20,4 +20,4 @@ jobs: -X POST \ -H 'content-type: application/json' \ -H 'authorization: ${{ secrets.CRON_API_KEY }}' \ - --fail + -sSf diff --git a/.github/workflows/cron-stale-issue.yml b/.github/workflows/cron-stale-issue.yml index e20689034f..6fdc0d8057 100644 --- a/.github/workflows/cron-stale-issue.yml +++ b/.github/workflows/cron-stale-issue.yml @@ -8,7 +8,7 @@ on: # "Scheduled workflows run on the latest commit on the default or base branch." # — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule schedule: - # Runs every day (see https://crontab.guru) + # Runs "At 00:00." every day (see https://crontab.guru) - cron: "0 0 * * *" workflow_dispatch: jobs: diff --git a/.github/workflows/cron-syncAppMeta.yml b/.github/workflows/cron-syncAppMeta.yml index baea2304e3..38ea311415 100644 --- a/.github/workflows/cron-syncAppMeta.yml +++ b/.github/workflows/cron-syncAppMeta.yml @@ -5,7 +5,7 @@ on: # "Scheduled workflows run on the latest commit on the default or base branch." # — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule schedule: - # Runs “Every month at 1st (see https://crontab.guru) + # Runs "At 00:00 on day-of-month 1." (see https://crontab.guru) - cron: "0 0 1 * *" jobs: cron-syncAppMeta: @@ -21,4 +21,4 @@ jobs: -X POST \ -H 'content-type: application/json' \ -H 'authorization: ${{ secrets.CRON_API_KEY }}' \ - --fail + -sSf diff --git a/.github/workflows/submodule-sync.yml b/.github/workflows/submodule-sync.yml index 442ea4bde1..71e5a32ff2 100644 --- a/.github/workflows/submodule-sync.yml +++ b/.github/workflows/submodule-sync.yml @@ -1,6 +1,7 @@ name: Submodule Sync on: schedule: + # Runs "At minute 15 past every 4th hour." (see https://crontab.guru) - cron: "15 */4 * * *" workflow_dispatch: ~ jobs: