Skip to content

add scheduled event handler for running cron jobs (#6) #6

add scheduled event handler for running cron jobs (#6)

add scheduled event handler for running cron jobs (#6) #6

Workflow file for this run

name: Deploy to staging
on:
push:
branches: develop
jobs:
Deploy-to-Cloudflare:
runs-on: ubuntu-latest
environment: staging
steps:
- uses: actions/checkout@v2
- uses: cloudflare/wrangler-action@2.0.0
with:
apiToken: ${{secrets.CLOUDFLARE_API_TOKEN}}
accountId: ${{secrets.CLOUDFLARE_ACCOUNT_ID}}
secrets: |
CRON_JOB_PRIVATE_KEY
CURRENT_ENVIRONMENT
env:
CURRENT_ENVIRONMENT: staging
CRON_JOB_PRIVATE_KEY: ${{secrets.CRON_JOB_PRIVATE_KEY}}
CLOUDFLARE_API_TOKEN: ${{secrets.CLOUDFLARE_API_TOKEN}}
CLOUDFLARE_ACCOUNT_ID: ${{secrets.CLOUDFLARE_ACCOUNT_ID}}