mirror of
https://github.com/earthly/actions-setup.git
synced 2025-01-13 18:57:56 +08:00
[fix]: if the path does not exist log an error rather than crashing
This commit is contained in:
parent
e7fbd54975
commit
8f5dc4316c
@ -35,7 +35,8 @@ export const cacheBinary = async () => {
|
||||
const primaryKey = core.getState(State.CachePrimaryKey);
|
||||
const path = core.getState(State.BinaryPath);
|
||||
if (!fs.existsSync(path)) {
|
||||
throw new Error(`Cache folder path doesn't exist on disk: ${path}`);
|
||||
core.warning(`Cache folder path doesn't exist on disk, skipping cache: ${path}`);
|
||||
return;
|
||||
}
|
||||
|
||||
core.debug(
|
||||
|
Loading…
x
Reference in New Issue
Block a user