Skip to content
trash

GitHub Action

Clean Cache Action

v1.0.6 Latest version

Clean Cache Action

trash

Clean Cache Action

Cleans up caches for GitHub Actions by their keys or branches

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Clean Cache Action

uses: yumemi-inc/[email protected]

Learn more about this action in yumemi-inc/clean-cache-action

Choose a version

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'