From 9efa429294a44a4c8a73162a5d78658ac486de4f Mon Sep 17 00:00:00 2001 From: Alex Johansson Date: Mon, 25 Oct 2021 17:42:16 +0200 Subject: [PATCH] fix cron jobs env/secrets (#1043) --- .github/workflows/cron-bookingReminder.yml | 5 ++++- .github/workflows/cron-downgradeUsers.yml | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cron-bookingReminder.yml b/.github/workflows/cron-bookingReminder.yml index e3f3b4b2eb..8c772094d4 100644 --- a/.github/workflows/cron-bookingReminder.yml +++ b/.github/workflows/cron-bookingReminder.yml @@ -8,10 +8,13 @@ on: - cron: "0,15,30,45 * * * *" jobs: cron: + env: + APP_URL: ${{ secrets.APP_URL }} + CRON_API_KEY: ${{ secrets.CRON_API_KEY }} runs-on: ubuntu-latest steps: - name: cURL request - if: ${{ secrets.APP_URL && secrets.CRON_API_KEY }} + if: ${{ env.APP_URL && env.CRON_API_KEY }} run: | curl ${{ secrets.APP_URL }}/api/cron/bookingReminder \ -X POST diff --git a/.github/workflows/cron-downgradeUsers.yml b/.github/workflows/cron-downgradeUsers.yml index f464b51830..2f149b3276 100644 --- a/.github/workflows/cron-downgradeUsers.yml +++ b/.github/workflows/cron-downgradeUsers.yml @@ -8,10 +8,13 @@ on: - cron: "0,15,30,45 * * * *" jobs: cron: + env: + APP_URL: ${{ secrets.APP_URL }} + CRON_API_KEY: ${{ secrets.CRON_API_KEY }} runs-on: ubuntu-latest steps: - name: cURL request - if: ${{ secrets.APP_URL && secrets.CRON_API_KEY }} + if: ${{ env.APP_URL && env.CRON_API_KEY }} run: | curl ${{ secrets.APP_URL }}/api/cron/downgradeUsers \ -X POST