eric sciple 5 vuotta sitten
vanhempi
sitoutus
7a2b445a4b
2 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 1 0
      dist/index.js
  2. 1 0
      src/github-api-helper.ts

+ 1 - 0
dist/index.js

@@ -8404,6 +8404,7 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat
                 yield downloadFile(archiveUrl, fileStream);
             }
             finally {
+                fileStream.end();
                 yield fileStreamClosed;
             }
             // return Buffer.from(response.data) // response.data is ArrayBuffer

+ 1 - 0
src/github-api-helper.ts

@@ -69,6 +69,7 @@ export async function downloadRepository(
       core.info('Downloading the archive') // Do not print the archive URL because it has an embedded token
       await downloadFile(archiveUrl, fileStream)
     } finally {
+      fileStream.end()
       await fileStreamClosed
     }