We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d7fc09 + 80443c0 commit 944fe19Copy full SHA for 944fe19
1 file changed
.github/workflows/manually-purge-fastly.yml
@@ -0,0 +1,29 @@
1
+name: Manually purge Fastly
2
+
3
+# **What it does**: Sends a soft-purge for the 'manual' Fastly surrogate key.
4
+# **Why we have it**: When something is overly cached in the Fastly CDN and want to purge it.
5
+# **Who does it impact**: Docs content.
6
7
+on:
8
+ workflow_dispatch:
9
10
+permissions:
11
+ contents: read
12
13
+jobs:
14
+ purge:
15
+ runs-on: ubuntu-latest
16
17
+ steps:
18
+ - name: Check out repo
19
+ uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
20
21
+ - name: Install dependencies
22
+ run: npm ci
23
24
+ - name: Soft-purge Fastly cache
25
+ env:
26
+ FASTLY_TOKEN: ${{ secrets.FASTLY_TOKEN }}
27
+ FASTLY_SERVICE_ID: ${{ secrets.FASTLY_SERVICE_ID }}
28
+ FASTLY_SURROGATE_KEY: 'manual-purge'
29
+ run: .github/actions-scripts/purge-fastly-edge-cache.js
0 commit comments