Skip to content

Clear Akamai Cache #139

Clear Akamai Cache

Clear Akamai Cache #139

Workflow file for this run

name: Clear Akamai Cache
on:
workflow_call:
inputs:
cpCode:
description: 'CP Code'
required: true
type: string
network:
description: 'Network'
required: true
type: string
workflow_dispatch:
inputs:
cpCode:
description: 'CP Code'
type: string
required: true
default: '1551836'
network:
description: 'Network'
type: choice
required: true
default: 'staging'
options:
- 'staging'
- 'production'
jobs:
clear-cache:
name: Clear Cache
runs-on: ubuntu-latest
steps:
- name: Clear Cache
uses: jdmevo123/akamai-purge-action@1.7
env:
EDGERC: ${{ secrets.EDGERC }}
with:
command: 'invalidate'
type: 'cpcode'
ref: ${{ inputs.cpCode }}
network: ${{ inputs.network }}