fix cron jobs env/secrets (#1043)

pull/1045/head
Alex Johansson 2021-10-25 17:42:16 +02:00 committed by GitHub
parent a9df3b9ad0
commit 9efa429294
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -8,10 +8,13 @@ on:
- cron: "0,15,30,45 * * * *" - cron: "0,15,30,45 * * * *"
jobs: jobs:
cron: cron:
env:
APP_URL: ${{ secrets.APP_URL }}
CRON_API_KEY: ${{ secrets.CRON_API_KEY }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: cURL request - name: cURL request
if: ${{ secrets.APP_URL && secrets.CRON_API_KEY }} if: ${{ env.APP_URL && env.CRON_API_KEY }}
run: | run: |
curl ${{ secrets.APP_URL }}/api/cron/bookingReminder \ curl ${{ secrets.APP_URL }}/api/cron/bookingReminder \
-X POST -X POST

View File

@ -8,10 +8,13 @@ on:
- cron: "0,15,30,45 * * * *" - cron: "0,15,30,45 * * * *"
jobs: jobs:
cron: cron:
env:
APP_URL: ${{ secrets.APP_URL }}
CRON_API_KEY: ${{ secrets.CRON_API_KEY }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: cURL request - name: cURL request
if: ${{ secrets.APP_URL && secrets.CRON_API_KEY }} if: ${{ env.APP_URL && env.CRON_API_KEY }}
run: | run: |
curl ${{ secrets.APP_URL }}/api/cron/downgradeUsers \ curl ${{ secrets.APP_URL }}/api/cron/downgradeUsers \
-X POST -X POST