-
Notifications
You must be signed in to change notification settings - Fork 5
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(create-release): add polling for status of airgap build enabled release #80
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also a new version of replicated-lib needs to be added once available.
@@ -11,6 +11,12 @@ export async function actionCreateRelease() { | |||
const releaseVersion = core.getInput('version') | |||
const releaseNotes = core.getInput('release-notes') | |||
const apiEndpoint = core.getInput("replicated-api-endpoint") || process.env.REPLICATED_API_ENDPOINT; | |||
const parsedTimeout = parseInt(core.getInput('timeout-minutes') || '20'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should also be added to action.yml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you! I have updated action.yml and README.md
src/create-release/index.ts
Outdated
|
||
if (resolvedChannel.buildAirgapAutomatically) { | ||
try { | ||
const status = await pollForAirgapReleaseStatus(apiClient, appSlug, resolvedChannel.id, +release.sequence, "built", timeoutMinutes); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be configurable by the end-user defining if they want to wait for the Air Gap result or not. Default should be false.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea. I have added wait-for-airgap-build
Here is the demo which shows the create-release worked as we expected. |
For create-release workflow
timeout-minutes
, default is 20 minutes.sc-120959
demo