Skip to content
archive

GitHub Action

Wipe Github Actions cache

v2 Latest version

Wipe Github Actions cache

archive

Wipe Github Actions cache

Wipes all Github Actions caches for a repository

Installation

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

              

- name: Wipe Github Actions cache

uses: easimon/wipe-cache@v2

Learn more about this action in easimon/wipe-cache

Choose a version

Wipe Github Actions Cache

This action deletes all actions caches (created with actions/cache) attached to the current repository.

Usage

Example Workflow

name: Clear all Github actions caches on sundays
on:
  schedule:
    - cron: "0 0 * * 0"
  workflow_dispatch:

jobs:
  my-job:
    name: Delete all caches
    runs-on: ubuntu-20.04

    steps:
      - name: Clear caches
        uses: easimon/wipe-cache@main
        with:
          dry-run: 'true'

Inputs

  github-token:
    description: 'Your GITHUB_TOKEN.'
    required: false
    default: ${{ github.token }}
  dry-run:
    description: 'List caches only, do not clear them.'
    required: false
    default: 'false'