Skip to content

Commit

Permalink
websites-integration: a few logs on build
Browse files Browse the repository at this point in the history
  • Loading branch information
cometkim committed Jun 5, 2024
1 parent 3f47045 commit 0ce6446
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _workers/websites-integration/deployment-awaiter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ if (!initResponse.ok) {
process.exit(1);
}

console.log(`Deployment(id: ${initData.id}) initialized`);

let state = initData.state;

const checkUrl = new URL(initData.check_url);
const artifactUrl = new URL(initData.artifact_url);

Expand All @@ -79,6 +82,7 @@ for await (const startTime of setInterval(5000, timeout)) {
throw new Error('invariant');
}
if (state.type === 'IN_PROGRESS') {
console.log('Awaiting build complete...');
continue;
}
if (state.type === 'DONE') {
Expand Down

0 comments on commit 0ce6446

Please sign in to comment.