Skip to content
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

Return the empty caches message as error log, not standard log #46

Closed
ForsakenHarmony opened this issue Jan 10, 2023 · 0 comments · Fixed by #47
Closed

Return the empty caches message as error log, not standard log #46

ForsakenHarmony opened this issue Jan 10, 2023 · 0 comments · Fixed by #47
Assignees
Labels
bug Something isn't working

Comments

@ForsakenHarmony
Copy link
Contributor

Describe the bug

Right now, the plugin prints out There are no Actions caches currently present in this repo or for the provided filters when there are no caches.
If you pipe this into another command, there's no differentiation between this and a normal cache entry output. The message should either not be printed or be printed to the error log when in a non-interactive context.

Steps to reproduce the behavior

  1. Execute gh actions-cache list -B refs/heads/doesnotexist

Logs

Using the recommended action to delete caches from actions/cache#981 leads to this log

Error: Cache with input key 'There' does not exist
Error: Cache with input key 'are' does not exist
Error: Cache with input key 'no' does not exist
Error: Cache with input key 'Actions' does not exist
Error: Cache with input key 'caches' does not exist
Error: Cache with input key 'currently' does not exist
Error: Cache with input key 'present' does not exist
Error: Cache with input key 'in' does not exist
Error: Cache with input key 'this' does not exist
Error: Cache with input key 'repo' does not exist
Error: Cache with input key 'or' does not exist
Error: Cache with input key 'for' does not exist
Error: Cache with input key 'the' does not exist
Error: Cache with input key 'provided' does not exist
Error: Cache with input key 'filters' does not exist
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants