From a4f140abb6aae5b1f3df3d9a8fa3f0839036aee8 Mon Sep 17 00:00:00 2001 From: stack72 Date: Wed, 18 Dec 2024 23:47:32 +0000 Subject: [PATCH] chore(ci): Add a cron to recycle the services during the holiday period --- ...deploy-cron.yml => prod-deploy-cron.disabled} | 0 .github/workflows/prod-service-restart-cron.yml | 16 ++++++++++++++++ 2 files changed, 16 insertions(+) rename .github/workflows/{prod-deploy-cron.yml => prod-deploy-cron.disabled} (100%) create mode 100644 .github/workflows/prod-service-restart-cron.yml diff --git a/.github/workflows/prod-deploy-cron.yml b/.github/workflows/prod-deploy-cron.disabled similarity index 100% rename from .github/workflows/prod-deploy-cron.yml rename to .github/workflows/prod-deploy-cron.disabled diff --git a/.github/workflows/prod-service-restart-cron.yml b/.github/workflows/prod-service-restart-cron.yml new file mode 100644 index 0000000000..8cd9247cb4 --- /dev/null +++ b/.github/workflows/prod-service-restart-cron.yml @@ -0,0 +1,16 @@ +name: Production Service Restart Cron + +on: + schedule: + - cron: "0 20 * * 1-5" # Deploys every weekday at 8pm UTC + +concurrency: + group: deploy-production + cancel-in-progress: false + +jobs: + deploy-production: + uses: ./.github/workflows/deploy-service-restart.yml + with: + environment: production + secrets: inherit