29 lines
779 B
YAML
29 lines
779 B
YAML
name: Manually purge Fastly
|
|
|
|
# **What it does**: Sends a soft-purge for the 'manual' Fastly surrogate key.
|
|
# **Why we have it**: When something is overly cached in the Fastly CDN and want to purge it.
|
|
# **Who does it impact**: Docs content.
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
purge:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Check out repo
|
|
uses: actions/checkout@93ea575cb5d8a053eaa0ac8fa3b40d7e05a33cc8
|
|
|
|
- uses: ./.github/actions/node-npm-setup
|
|
|
|
- name: Soft-purge Fastly cache
|
|
env:
|
|
FASTLY_TOKEN: ${{ secrets.FASTLY_TOKEN }}
|
|
FASTLY_SERVICE_ID: ${{ secrets.FASTLY_SERVICE_ID }}
|
|
FASTLY_SURROGATE_KEY: 'manual-purge'
|
|
run: .github/actions-scripts/purge-fastly-edge-cache.js
|