eric sciple 5 年之前
父节点
当前提交
bb56c8569a
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      dist/index.js
  2. 1 1
      src/github-api-helper.ts

+ 1 - 1
dist/index.js

@@ -8398,7 +8398,7 @@ function downloadRepository(accessToken, owner, repo, ref, commit, repositoryPat
                 assert.ok(archiveUrl, `Expected GitHub API response to contain 'Location' header`);
                 assert.ok(archiveUrl, `Expected GitHub API response to contain 'Location' header`);
                 // Download the archive
                 // Download the archive
                 core.info('Downloading the archive'); // Do not print the archive URL because it has an embedded token
                 core.info('Downloading the archive'); // Do not print the archive URL because it has an embedded token
-                downloadFile(archiveUrl, fileStream);
+                yield downloadFile(archiveUrl, fileStream);
             }
             }
             finally {
             finally {
                 yield fileStreamClosed;
                 yield fileStreamClosed;

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

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