Code Monkey home page Code Monkey logo

fastly-purge-action's Introduction

fastly-purge-action

A GitHub Actions to purge Fastly cache.

Usage

Puge by surrogate key

- name: Purge Fastly cache
  uses: yukukotani/fastly-purge-action@v1
  with:
    api-token: YOUR_TOKEN_HERE
    service-id: 4UiI4ODITcAJv2z4ezJTFC
    target: surrogate-key,another-key
    keys: landing-pages
    soft: true

Purge by single url

- name: Purge Fastly cache
  uses: yukukotani/fastly-purge-action@v1
  with:
    api-token: YOUR_TOKEN_HERE
    target: single-url
    url: "https://example.com/some/page"
    soft: true

Options

api-token

Required

Your API token of Fastly. See here for details.

target

Required

The target to purge. Currently, only surrogate-key and single-url are supported. all will be supported if anyone requests.

service-id

Required when the target is surrogate-key

Your service id to purge caches. This is not service name. This will be a random alphanumeric string.

keys

Required when the target is surrogate-key

Surrogate Keys to purge. If you want to purge multiple keys, separate them with a comma.

url

Required when the target is single-url

soft

True by default. If false, the affected object will be inaccessible rather than marked as stale.

fastly-purge-action's People

Contributors

docwilco avatar dustinbrownman avatar yukukotani avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

fastly-purge-action's Issues

`set-output` is deprecated

The action currently causes the following to show up in logs:

Warning: The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.