1
0
mirror of synced 2026-01-04 18:06:26 -05:00
Files
docs/.github/workflows/manually-purge-fastly.yml
2023-01-09 17:46:50 +00:00

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