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

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

adapttive/cache-delete

Setup

name: build-deployon:
push:
branches: [ production ]workflow_dispatch:
jobs:
your-job-1:
runs-on: ubuntu-latestname: 'build'steps:
- name: Cache Buildid: cache-builduses: actions/cache/save@v3with:
path: ${{ github.workspace }}/your-folder-to-cachekey: ${{ github.sha }}-your-cache-keyyour-job-2:
runs-on: ubuntu-latestname: 'deploy'steps:
- uses: actions/cache/restore@v3id: restore-buildwith:
path: ${{ github.workspace }}/your-folder-to-cachekey: ${{ github.sha }}-your-cache-keycleanup:
runs-on: ubuntu-latestneeds: ['your-job-1', 'your-job-2']name: 'cache cleanup'steps:
- uses: adapttive/cache-deletewith:
github-token: ${{ secrets.ADMIN_GITHUB_TOKEN }}cache-key: ${{ github.sha }}-your-cache-key 

About

GitHub Action Cache Delete

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors