[CI] [GHA] Create cache directory recursively (#24732)
### Details: - Port of #24703 - The issue that was present on the release branches does not affect the master branch yet but it could if, for example, a new folder is added to the cache path. ### Tickets: - *142372*
This commit is contained in:
parent
8265a986d5
commit
38ce1fff0f
|
|
@ -33258,7 +33258,7 @@ async function save() {
|
|||
|
||||
// remote cache directory may not be created yet
|
||||
if (!(await checkFileExists(cacheRemotePath))) {
|
||||
await fs.mkdir(cacheRemotePath);
|
||||
await fs.mkdir(cacheRemotePath, { recursive: true });
|
||||
}
|
||||
|
||||
core.info('Copying cache...');
|
||||
|
|
|
|||
|
|
@ -33258,7 +33258,7 @@ async function save() {
|
|||
|
||||
// remote cache directory may not be created yet
|
||||
if (!(await checkFileExists(cacheRemotePath))) {
|
||||
await fs.mkdir(cacheRemotePath);
|
||||
await fs.mkdir(cacheRemotePath, { recursive: true });
|
||||
}
|
||||
|
||||
core.info('Copying cache...');
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ async function save() {
|
|||
|
||||
// remote cache directory may not be created yet
|
||||
if (!(await checkFileExists(cacheRemotePath))) {
|
||||
await fs.mkdir(cacheRemotePath);
|
||||
await fs.mkdir(cacheRemotePath, { recursive: true });
|
||||
}
|
||||
|
||||
core.info('Copying cache...');
|
||||
|
|
|
|||
Loading…
Reference in New Issue