-
Notifications
You must be signed in to change notification settings - Fork 6
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
Conversation
terraform-actions/fmt.sh
Outdated
echo | ||
fi | ||
|
||
if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ([ "${commentStatus}" == "Failed" ]); then |
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.
if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && ([ "${commentStatus}" == "Failed" ]); then | |
if [ "$GITHUB_EVENT_NAME" == "pull_request" ] && [ "${commentStatus}" == "Failed" ]; then |
terraform-actions/helmfile.yaml
Outdated
@@ -0,0 +1,7 @@ | |||
repositories: |
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.
Should this be here?
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.
And by this I mean the file.
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.
Nope, this is what I get with a lazy git add -A
terraform-actions/init.sh
Outdated
if [ ${exitCode} -ne 0 ]; then | ||
echo "Error: Failed to run terraform init" | ||
echo "${output}" | ||
echo | ||
fi |
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.
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 |
🎉 This PR is included in version 1.2.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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 viaasdf
). Each sub command will be its own step which ultimately will write its own PR comment.