From 59786d7f96a0ddabbc318ba5ac4faf3b1bcef227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vitor=20Polverari?= Date: Wed, 3 Apr 2024 21:42:06 -0300 Subject: [PATCH] Updated actions/github-script and added redundancy --- .github/workflows/clear-cache.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/clear-cache.yml b/.github/workflows/clear-cache.yml index a3691026a..2da53b210 100644 --- a/.github/workflows/clear-cache.yml +++ b/.github/workflows/clear-cache.yml @@ -4,8 +4,10 @@ name: Clear cache on: workflow_dispatch: schedule: - - cron: '0 0 * * *' # Midnight every day - - cron: '0 12 * * *' # Noon every day + - cron: '0 0 * * *' # 00:00 every day + - cron: '5 0 * * *' # 00:05 every day + - cron: '0 12 * * *' # 12:00 every day + - cron: '5 12 * * *' # 12:05 every day permissions: actions: write @@ -15,7 +17,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Clear cache - uses: actions/github-script@v6 + uses: actions/github-script@v7.0.1 with: script: | console.log("About to clear")