Cron sync denylist #2991
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cron sync denylist | |
on: | |
schedule: | |
- cron: '13 0,5,10,15,20 * * *' | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/denylist/denylist.json' | |
jobs: | |
update: | |
name: Sync deny list with KV store | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
env: ['staging', 'production'] | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'pnpm' | |
- run: pnpm install | |
- name: Run job | |
env: | |
CF_API_TOKEN: ${{ secrets.CF_DENYLIST_TOKEN }} | |
run: node packages/denylist/scripts/cli.js denylist sync --env ${{ matrix.env }} |