Skip to content

How to remove specific cache key? #79

@dmzrio

Description

@dmzrio

I have job for refreshing cache every day, since I migrate to self-hosted cache server remove existing cache key doesn't work and always not found.

This is my step.

`

- name: Delete existing cache mod

  continue-on-error: true

  shell: bash

  run: |
    gh extension install actions/gh-actions-cache

    gh actions-cache delete "Linux-golang-${{ hashFiles(format('{0}/{1}',inputs.hash_files,'go.sum')) }}" --confirm

    gh actions-cache delete "Linux-golang-" --confirm

  env:

    GH_TOKEN: ${{ inputs.gh_token }}

`

how to remove cache key manualy? I don't expect to use env CLEANUP_OLDER_THAN_DAYS because I want use more control for my cache.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions