wait 3s until artifacts are available

pull/79/head
Alexander Bentkamp 3 years ago
parent e9a434e26c
commit 6cda39a778

@ -55,6 +55,8 @@ async function download(id, url, dest) {
} }
async function doImport (owner, repo, id) { 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 let artifactId = null
try { try {
const artifacts = await octokit.request('GET /repos/{owner}/{repo}/actions/artifacts', { const artifacts = await octokit.request('GET /repos/{owner}/{repo}/actions/artifacts', {

Loading…
Cancel
Save