fix cron jobs env/secrets (#1043)
parent
a9df3b9ad0
commit
9efa429294
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue