GHA: Create onw osx specific cache purge action
This commit is contained in:
3
.github/actions/akamai-purge-osx/action.yml
vendored
3
.github/actions/akamai-purge-osx/action.yml
vendored
@@ -20,16 +20,19 @@ runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Setup
|
||||
shell: bash
|
||||
run: |
|
||||
echo -e "${EDGERC}" > ${HOME}/.edgerc
|
||||
brew install go
|
||||
brew install akamai
|
||||
akamai install purge
|
||||
- name: Purge
|
||||
shell: bash
|
||||
run: |
|
||||
akamai purge --edgerc ${HOME}/.edgerc --section ccu ${{ inputs.command }} ${{ inputs.network }} ${{ inputs.type }} ${{ inputs.ref }}
|
||||
- name: Cleanup
|
||||
if: ${{ always() }}
|
||||
shell: bash
|
||||
run: |
|
||||
rm -f ${HOME}/.edgerc
|
||||
brew uninstall akamai
|
||||
|
||||
2
.github/workflows/akamai-purge-cache.yml
vendored
2
.github/workflows/akamai-purge-cache.yml
vendored
@@ -76,7 +76,7 @@ jobs:
|
||||
with:
|
||||
sparse-checkout: |
|
||||
.github
|
||||
- uses: ${{ github.workspace }}/.github/actions/akamai-purge-osx
|
||||
- uses: ./.github/actions/akamai-purge-osx
|
||||
with:
|
||||
command: invalidate
|
||||
type: url
|
||||
|
||||
Reference in New Issue
Block a user