GHA: Create onw osx specific cache purge action

This commit is contained in:
aboyko
2023-11-15 19:48:37 -05:00
parent 6fb6ad1a96
commit f9154c019e
2 changed files with 4 additions and 14 deletions

View File

@@ -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

View File

@@ -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 }}