-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add deny list sync cron job (#1759)
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.
There are no files selected for viewing
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
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 }} |