Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/follow deploy #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Feat/follow deploy #1

wants to merge 3 commits into from

Conversation

Gregoire-Fremaux
Copy link

Adding deployment info after manual deploy triggered (Not tested)

await new Promise(resolve => setTimeout(resolve, 5000));
}
}
} while (deploymentInfo.deployment.status !== "success" && deploymentInfo.deployment.status !== "error");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je mettrais un timeout quand même au pour pas cramer les quotas de ta GHA si jamais le déploiement dure trop longtemps

if (deploymentInfo) {
let deployStatus = deploymentInfo.deployment.status
if (deployStatus !== 'success' && deployStatus !== 'failed') {
await new Promise(resolve => setTimeout(resolve, 5000));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Du coup ici je ferais plutôt un setInterval que tu viens clear quand c'est succeeded ou failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants