GHA: Create onw osx specific cache purge action
This commit is contained in:
14
.github/actions/akamai-purge-osx/action.yml
vendored
14
.github/actions/akamai-purge-osx/action.yml
vendored
@@ -5,17 +5,9 @@ inputs:
|
||||
description: The command from akamai purge command
|
||||
required: true
|
||||
default: invalidate
|
||||
type:
|
||||
description: Type of Ref, i.e. (tags, cpcode, url)
|
||||
required: false
|
||||
default: url
|
||||
ref:
|
||||
description: References tags, urls, etc
|
||||
urls:
|
||||
description: urls
|
||||
required: true
|
||||
network:
|
||||
description: Network (production or staging)
|
||||
required: true
|
||||
default: production
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@@ -29,7 +21,7 @@ runs:
|
||||
- name: Purge
|
||||
shell: bash
|
||||
run: |
|
||||
akamai purge --edgerc ~/.edgerc --section ccu ${{ inputs.command }} ${{ inputs.network }} ${{ inputs.type }} ${{ inputs.ref }}
|
||||
akamai purge --edgerc ~/.edgerc --section ccu ${{ inputs.command }} ${{ inputs.urls }}
|
||||
- name: Cleanup
|
||||
if: ${{ always() }}
|
||||
shell: bash
|
||||
|
||||
4
.github/workflows/akamai-purge-cache.yml
vendored
4
.github/workflows/akamai-purge-cache.yml
vendored
@@ -81,6 +81,4 @@ jobs:
|
||||
EDGERC: ${{ secrets.EDGERC }}
|
||||
with:
|
||||
command: invalidate
|
||||
type: url
|
||||
network: production
|
||||
ref: ${{ needs.purge1.outputs.urls }}
|
||||
urls: ${{ needs.purge1.outputs.urls }}
|
||||
Reference in New Issue
Block a user