-
Notifications
You must be signed in to change notification settings - Fork 3
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.
A few minor changes, but overall this looks awesome! Thanks for contributing!
index.js
Outdated
const awaitBuild = core.getInput("await-build") | ||
|
||
if(awaitBuild && data.deployments[0].state !== "READY"){ | ||
throw Error("Deployment not yet ready") | ||
} |
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 logic could be moved to a helper function to be used in both places.
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.
Updated in ec5b21c
Thank you for the initial work, this action has been really useful!
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.
Glad to hear it has been useful! There is nothing quite like the feeling of building an open source projects that other people find useful!
Co-authored-by: Mark Skelton <mdskelton99@gmail.com>
Co-authored-by: Mark Skelton <mdskelton99@gmail.com>
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.
Great work!
I just published version 1.2.0 and updated the v1 tag so your changes are now live and ready to use! |
team-id
parameter for deployments owned by a team (see Accessing Resources Owned by a Team)await-build
parameter to check for the build to be succesfully built (see Deployment Response Parameters)