Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-10 01:44:30 -0500
committereric sciple <ericsciple@users.noreply.github.com>2019-12-10 01:44:30 -0500
commitb279292e67b456657d67b191f7b1ff2396a3f6bf (patch)
treef7fc5393bd57e80e92d849205883b912148e7155
parent045a627ec28d9cc057fbee592497ad8c64052a11 (diff)
.
-rw-r--r--dist/index.js2
-rw-r--r--src/github-api-helper.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/dist/index.js b/dist/index.js
index d6b53bc..6ea37c7 100644
--- a/dist/index.js
+++ b/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`);
// Download the archive
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 {
yield fileStreamClosed;
diff --git a/src/github-api-helper.ts b/src/github-api-helper.ts
index e0f0cdc..8bec9a6 100644
--- a/src/github-api-helper.ts
+++ b/src/github-api-helper.ts
@@ -64,7 +64,7 @@ export async function downloadRepository(
// Download the archive
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 {
await fileStreamClosed
}