-
Notifications
You must be signed in to change notification settings - Fork 35
52 lines (49 loc) · 1.15 KB
/
clear-cache.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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, 1551836 (prod) / 1551833 (stage)'
type: string
required: true
default: '1551836'
network:
description: 'Network'
type: choice
required: true
default: 'staging'
options:
- 'staging'
- 'production'
command:
description: 'Command'
type: choice
required: true
default: 'invalidate'
options:
- 'invalidate'
- 'delete'
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: ${{ inputs.command }}
type: 'cpcode'
ref: ${{ inputs.cpCode }}
network: ${{ inputs.network }}