diff --git a/.github/workflows/mailtrigger.yaml b/.github/workflows/mailtrigger.yaml new file mode 100644 index 0000000..543bd71 --- /dev/null +++ b/.github/workflows/mailtrigger.yaml @@ -0,0 +1,13 @@ +name: 15-minute-cron +on: + schedule: + - cron: '*/15 * * * *' +jobs: + cron: + runs-on: ubuntu-latest + steps: + - name: Trigger Mail API route + run: | + curl --request POST \ + --url 'https://pfadi-bussle.tomru.space/api/mailtrigger' \ + --header 'Authorization: Bearer ${{ secrets.MAIL_TRIGGER_API_SECRET_KEY }}'