Skip to content

bug(actions-cache-docs): Example workflow to delete all caches on PR closure does not delete all caches on PRs with many caches #26251

@erezrokah

Description

@erezrokah

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#force-deleting-cache-entries

Specifically
image

What part(s) of the article would you like to see updated?

gh actions-cache list returns up to a limit of 30 caches by default, and one can pass -L 100 to have a limit of 100, so stating the workflow deletes all caches can be incorrect for PRs with many caches.

Additional information

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions