Skip to content

How to remove specific cache key? #79

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dmzrio opened this issue Nov 21, 2024 · 0 comments · May be fixed by #85
Closed

How to remove specific cache key? #79

dmzrio opened this issue Nov 21, 2024 · 0 comments · May be fixed by #85

Comments

@dmzrio
Copy link

dmzrio commented Nov 21, 2024

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.

porunov added a commit to porunov/github-actions-cache-server that referenced this issue Dec 28, 2024
Fixes falcondev-oss#79
Partially related to falcondev-oss#74

Signed-off-by: Oleksandr Porunov <[email protected]>
porunov added a commit to porunov/github-actions-cache-server that referenced this issue Dec 28, 2024
Fixes falcondev-oss#79
Partially related to falcondev-oss#74

Signed-off-by: Oleksandr Porunov <[email protected]>
porunov added a commit to porunov/github-actions-cache-server that referenced this issue Apr 23, 2025
Fixes falcondev-oss#79
Partially related to falcondev-oss#74

Signed-off-by: Oleksandr Porunov <[email protected]>
porunov added a commit to porunov/github-actions-cache-server that referenced this issue Apr 24, 2025
Fixes falcondev-oss#79
Partially related to falcondev-oss#74

Signed-off-by: Oleksandr Porunov <[email protected]>
porunov added a commit to porunov/github-actions-cache-server that referenced this issue Apr 24, 2025
Fixes falcondev-oss#79
Partially related to falcondev-oss#74

Signed-off-by: Oleksandr Porunov <[email protected]>
@dmzrio dmzrio closed this as completed Apr 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant