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 25, 2024
1 parent 5de31fc commit f7731e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

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 f7731e8

Please sign in to comment.