Skip to content

Commit

Permalink
Create intermediate directories
Browse files Browse the repository at this point in the history
Signed-off-by: Andres Peñaloza <[email protected]>
  • Loading branch information
Chagui- committed Apr 16, 2024
1 parent 5de31fc commit 917c9e1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/extract-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { run, runPiped } from './run.js';
async function extractCache(cacheSource: string, cacheOptions: CacheOptions, scratchDir: string) {
// Prepare Timestamp for Layer Cache Busting
const date = new Date().toISOString();

await fs.mkdir(scratchDir, { recursive: true });
await fs.writeFile(path.join(scratchDir, 'buildstamp'), date);

// Prepare Dancefile to Access Caches
Expand Down

0 comments on commit 917c9e1

Please sign in to comment.