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

Add support for specifying terraform targets #14

Merged
merged 4 commits into from
Dec 2, 2021
Merged

Conversation

EvyBongers
Copy link
Contributor

No description provided.

@EvyBongers EvyBongers requested a review from a team as a code owner November 30, 2021 17:01
action.yaml Outdated Show resolved Hide resolved
Comment on lines +42 to +44
let terraformDoApply = core.getBooleanInput('terraform_do_apply');
let terraformDoDestroy = core.getBooleanInput('terraform_do_destroy');
const terraformLock = core.getBooleanInput('terraform_lock');
Copy link
Contributor Author

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

Comment on lines -60 to -63
if (terraformLock !== 'true' && terraformLock !== 'false') {
core.setFailed(`Sanity checks failed. Unknown value for 'terraform_lock': ${terraformLock}`);
process.exit(1);
}
Copy link
Contributor Author

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.

index.js Outdated Show resolved Hide resolved
index.js Show resolved Hide resolved
@EvyBongers EvyBongers requested a review from tun0 November 30, 2021 17:56
@EvyBongers EvyBongers merged commit c4ffaa4 into main Dec 2, 2021
@EvyBongers EvyBongers deleted the improvements branch December 2, 2021 08:16
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