1
0
mirror of synced 2026-01-07 09:01:31 -05:00

Merge pull request #13058 from github/repo-sync

repo sync
This commit is contained in:
Octomerger Bot
2021-12-16 07:54:57 -06:00
committed by GitHub

View File

@@ -0,0 +1,29 @@
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@ec3a7ce113134d7a93b817d10a8272cb61118579
- name: Install dependencies
run: npm ci
- 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