Skip to content

Commit

Permalink
Add purge action command choice
Browse files Browse the repository at this point in the history
  • Loading branch information
TsayAdobe committed Sep 18, 2024
1 parent 5b63036 commit 18d280f
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/clear-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
workflow_dispatch:
inputs:
cpCode:
description: 'CP Code'
description: 'CP Code, 1551836 (prod) / 1551833 (stage)'
type: string
required: true
default: '1551836'
Expand All @@ -27,6 +27,14 @@ on:
options:
- 'staging'
- 'production'
command:
description: 'Command'
type: choice
required: true
default: 'invalidate'
options:
- 'invalidate'
- 'delete'

jobs:
clear-cache:
Expand All @@ -38,7 +46,7 @@ jobs:
env:
EDGERC: ${{ secrets.EDGERC }}
with:
command: 'invalidate'
command: ${{ inputs.command }}
type: 'cpcode'
ref: ${{ inputs.cpCode }}
ref: ${{ inputs.cpCode }}
network: ${{ inputs.network }}

0 comments on commit 18d280f

Please sign in to comment.