-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 955 Bytes
/
cdn-purge-all.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
name: Azure cdn purge All
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: login
uses: azure/login@v1
with:
creds: ${{ secrets.AZURE_CREDENTIALS }}
- name: Purge CDN endpoint
uses: azure/CLI@v1
with:
inlineScript: |
az cdn endpoint purge --content-paths "/spots/*" --profile-name "cdn" --name "pumptrack" --resource-group "pumptrack-assets"
# Azure logout
- name: logout
run: |
az logout
if: always()
- name: Dispatch pumptrack-map worfklow
uses: actions/github-script@v6
with:
github-token: ${{ secrets.PAT_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: 'lluisd',
repo: 'pumptrack-map',
workflow_id: 'main_pumptrack-map-app.yml',
ref: 'main'
})