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: Terraform GitHub Actions #10

Merged
8 commits merged into from
Aug 27, 2020
Merged

feat: Terraform GitHub Actions #10

8 commits merged into from
Aug 27, 2020

Conversation

ghost
Copy link

@ghost ghost commented Aug 27, 2020

Verified these on another repo. Everything works as previously discussed. These are composite actions so they run quickly. They expect that terraform is already installed (which we'd do in previous steps via asdf). Each sub command will be its own step which ultimately will write its own PR comment.

@ghost ghost marked this pull request as ready for review August 27, 2020 20:46
@ghost ghost requested a review from mdobosz-isp as a code owner August 27, 2020 20:46
echo
fi

if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ([ "${commentStatus}" == "Failed" ]); then
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ([ "${commentStatus}" == "Failed" ]); then
if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${commentStatus}" == "Failed" ]; then

@@ -0,0 +1,7 @@
repositories:
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be here?

Copy link
Contributor

Choose a reason for hiding this comment

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

And by this I mean the file.

Copy link
Author

Choose a reason for hiding this comment

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

Nope, this is what I get with a lazy git add -A

Comment on lines 15 to 19
if [ ${exitCode} -ne 0 ]; then
echo "Error: Failed to run terraform init"
echo "${output}"
echo
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
if [ ${exitCode} -ne 0 ]; then
echo "Error: Failed to run terraform init"
echo "${output}"
echo
fi
echo "Error: Failed to run terraform init"
echo "${output}"
echo

@ghost ghost requested a review from mdobosz-isp August 27, 2020 22:17
@ghost ghost merged commit fd66f4d into main Aug 27, 2020
@ghost ghost deleted the terraform-actions branch August 27, 2020 22:31
@github-actions
Copy link

🎉 This PR is included in version 1.2.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

1 participant