Skip to content

Cron sync denylist #2982

Cron sync denylist

Cron sync denylist #2982

Workflow file for this run

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 }}