-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add support for specifying terraform targets #14
Conversation
let terraformDoApply = core.getBooleanInput('terraform_do_apply'); | ||
let terraformDoDestroy = core.getBooleanInput('terraform_do_destroy'); | ||
const terraformLock = core.getBooleanInput('terraform_lock'); |
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.
Found this method by chance. It validates values against the YAML 1.2 "Core Schema" specification.
https://github.com/actions/toolkit/blob/main/packages/core/src/core.ts#L161-L181
if (terraformLock !== 'true' && terraformLock !== 'false') { | ||
core.setFailed(`Sanity checks failed. Unknown value for 'terraform_lock': ${terraformLock}`); | ||
process.exit(1); | ||
} |
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.
Obsoleted by using core.getBooleanInput
.
No description provided.