Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adapttive/cache-delete-action
GitHub Action Cache Delete
https://github.com/adapttive/cache-delete-action
Last synced: about 2 months ago
JSON representation
GitHub Action Cache Delete
- Host: GitHub
- URL: https://github.com/adapttive/cache-delete-action
- Owner: adapttive
- Created: 2023-09-11T10:31:02.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-15T08:52:11.000Z (about 1 year ago)
- Last Synced: 2024-05-21T01:46:01.181Z (8 months ago)
- Size: 5.86 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# adapttive/cache-delete
## Setup
```yml
name: build-deployon:
push:
branches: [ production ]
workflow_dispatch:jobs:
your-job-1:
runs-on: ubuntu-latest
name: 'build'steps:
- name: Cache Build
id: cache-build
uses: actions/cache/save@v3
with:
path: ${{ github.workspace }}/your-folder-to-cache
key: ${{ github.sha }}-your-cache-keyyour-job-2:
runs-on: ubuntu-latest
name: 'deploy'steps:
- uses: actions/cache/restore@v3
id: restore-build
with:
path: ${{ github.workspace }}/your-folder-to-cache
key: ${{ github.sha }}-your-cache-keycleanup:
runs-on: ubuntu-latest
needs: ['your-job-1', 'your-job-2']
name: 'cache cleanup'steps:
- uses: adapttive/cache-delete
with:
github-token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
cache-key: ${{ github.sha }}-your-cache-key
```