Skip to content

gacts/purge-jsdelivr-cache

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

Purge jsDelivr cache

Release version Build Status License

This GitHub action allows purge file cache on jsDelivr CDN side.

Usage

jobs:
  purge-jsdelivr-cache:
    runs-on: ubuntu-20.04
    steps:
      - uses: gacts/purge-jsdelivr-cache@v1
        with:
          url: |
            https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.js
            https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js

Customizing

Inputs

Following inputs can be used as step.with keys:

Name Type Default Required Description
url string or list yes URLs for the cache purging
attempts number 3 no Retry attempts (on the request failing)

Releasing

New versions releasing scenario:

  • Make required changes in the changelog file
  • Build the action distribution (make build or yarn build)
  • Commit and push changes (including dist directory changes - this is important) into the master branch
  • Publish new release using repo releases page (git tag should follow vX.Y.Z format)

Major and minor git tags (v1 and v1.2 if you publish v1.2.Z release) will be updated automatically.

Support

Issues Issues

If you find any action errors, please, make an issue in the current repository.

License

This is open-sourced software licensed under the MIT License.