wait 3s until artifacts are available

This commit is contained in:
Alexander Bentkamp
2023-05-11 09:37:20 +02:00
parent e9a434e26c
commit 6cda39a778
+2
View File
@@ -55,6 +55,8 @@ async function download(id, url, dest) {
}
async function doImport (owner, repo, id) {
progress[id].output += `Import starting in a few seconds...\n`
await new Promise(resolve => setTimeout(resolve, 3000))
let artifactId = null
try {
const artifacts = await octokit.request('GET /repos/{owner}/{repo}/actions/artifacts', {