Skip to content

Commit

Permalink
feat: add deny list sync cron job (#1759)
Browse files Browse the repository at this point in the history
resolves #1738
  • Loading branch information
Alan Shaw authored Apr 4, 2022
1 parent fc13a39 commit 870c814
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/cron-denylist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Cron sync deny list

on:
schedule:
- cron: '13 8 * * *'
workflow_dispatch:

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@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: bahmutov/npm-install@v1
- name: Run job
env:
CF_API_TOKEN: ${{ secrets.CF_GATEWAY_TOKEN }}
run: node packages/gateway/scripts/cli.js denylist sync --env ${{ matrix.env }}

0 comments on commit 870c814

Please sign in to comment.