Skip to content

Commit

Permalink
fix: ensure the directory is created properly
Browse files Browse the repository at this point in the history
  • Loading branch information
ChecksumDev committed Jul 18, 2024
1 parent 7ccfe67 commit 07966dd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,9 @@ async function run(): Promise<void> {
const tarballPath = `./${repoName}-${branch}.tar.gz`
const extractPath = `./${repoName}-${branch}`

core.info(`Creating directory ${extractPath}...`)
await fs.mkdir(extractPath, { recursive: true })

core.info(`Downloading ${archiveUrl}...`)
await downloadFile(archiveUrl, tarballPath, token)

Expand Down

0 comments on commit 07966dd

Please sign in to comment.