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
Setting doNotCacheOnWorkflowFailure: true disables caching entirely (?) #125
Comments
@equeim By inspecting the code the message you mentioned is only outputted when Could you confirm whether this looks correct? |
Hmm. I took another look at the action code, and it looks like that constructor arguments for VcpkgPostAction class are in the wrong order: Line 26 in 45ca959
and run-vcpkg/src/vcpkg-post-action.ts Line 14 in 45ca959
(doNotCacheOnWorkflowFailure and doNotCache are mixed up). |
Fixed in #126 , please try |
It seems that doNotCacheOnWorkflowFailure is removed in 10.1. Does this mean that there is now no way to disable cache saving when workflow fails? |
@equeim right, it was removed because the detection of the job status in the post action never worked. The way it works now is as follows:
Opened #128 about solving this. |
I use run-vcpkg action from my own compisite action like this: https://github.com/equeim/action-setup-vcpkg-msvc/blob/master/action.yml
There I set doNotCacheOnWorkflowFailure input to true. Then, when job is completed successfully, post action from run-vcpkg says that:
AFAIK, it can happen only if doNotCache input is true and it false by default.
There is log when run-vcpkg is invoked:
Could it be related to the fact that I use it from composite action?
The text was updated successfully, but these errors were encountered: