Skip to content

Commit

Permalink
write zip file in path (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
iTrooz committed Jun 19, 2022
1 parent 27fee4d commit 6765a42
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/download.yml
Expand Up @@ -103,9 +103,11 @@ jobs:
skip_unpack: true
- name: Test
run: |
test -f artifact.zip
! test -d artifact
unzip -l artifact.zip
test -d artifact
test -f artifact/artifact.zip
! test -d artifact/artifact
! test -f artifact.zip
unzip -l artifact/artifact.zip
download-dry-run-exists:
runs-on: ubuntu-latest
needs: wait
Expand Down
3 changes: 2 additions & 1 deletion main.js
Expand Up @@ -191,7 +191,8 @@ async function main() {
})

if (skipUnpack) {
fs.writeFileSync(`${artifact.name}.zip`, Buffer.from(zip.data), 'binary')
fs.mkdirSync(path, { recursive: true })
fs.writeFileSync(`${pathname.join(path, artifact.name)}.zip`, Buffer.from(zip.data), 'binary')
continue
}

Expand Down

0 comments on commit 6765a42

Please sign in to comment.