Update remote denylist #501
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: Update remote denylist | |
on: | |
workflow_dispatch: | |
inputs: | |
url: | |
required: true | |
description: URL of the file to use to update denylist | |
type: string | |
operation: | |
required: true | |
description: Operation to be performed in the remote denylist. Default is add | |
options: | |
- add | |
- delete | |
default: add | |
jobs: | |
update: | |
name: Update remote denylist | |
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_TOKEN }} | |
run: node packages/denylist/scripts/cli.js denylist update-remote ${{ toJSON(github.event.inputs.url) }} --env ${{ matrix.env }} --operation ${{ github.event.inputs.operation }} |