Skip to content

yumemi-inc/clean-cache-action

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

Repository files navigation

Clean Cache Action

Warning
This is not an official product of YUMEMI Inc.

Cleans up caches for GitHub Actions by their keys or branches.

Examples

Delete all caches for a pull request after closed

on:
  pull_request:
    types:
      - closed

jobs:
  clean:
    runs-on: ubuntu-latest
    permissions:
      actions: write
    steps:
      - uses: yumemi-inc/clean-cache-action@v1
        with:
          ref: 'refs/pull/${{ github.event.pull_request.number }}/merge'