* Check given input and run a save process for the specified package manager * @returns Promise that will be resolved when the save process finishes
()
| 25 | * @returns Promise that will be resolved when the save process finishes |
| 26 | */ |
| 27 | async function saveCache() { |
| 28 | const jobStatus = isJobStatusSuccess(); |
| 29 | const cache = core.getInput(constants.INPUT_CACHE); |
| 30 | return jobStatus && cache ? save(cache) : Promise.resolve(); |
| 31 | } |
| 32 | |
| 33 | /** |
| 34 | * The save process is best-effort, and it should not make the workflow fail |
no test coverage detected