Skip to content

Commit

Permalink
Update main.workflow (pwelch#2)
Browse files Browse the repository at this point in the history
* Update main.workflow
* Add workflow changes
  • Loading branch information
pwelch authored Apr 4, 2019
1 parent 2069465 commit 641eadd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
20 changes: 19 additions & 1 deletion .github/main.workflow
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
workflow "Terraform" {
resolves = "terraform-plan"
resolves = "terraform-fmt"
on = "pull_request"
}

Expand All @@ -16,3 +16,21 @@ action "terraform-fmt" {
TF_ACTION_WORKING_DIR = "."
}
}

action "terraform-init" {
uses = "hashicorp/terraform-github-actions/[email protected]"
needs = "terraform-fmt"
secrets = ["GITHUB_TOKEN"]
env = {
TF_ACTION_WORKING_DIR = "."
}
}

action "terraform-validate" {
uses = "hashicorp/terraform-github-actions/[email protected]"
needs = "terraform-init"
secrets = ["GITHUB_TOKEN"]
env = {
TF_ACTION_WORKING_DIR = "."
}
}
1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ resource "random_pet" "server" {

length = "${var.pet_name_length}"
}

1 change: 0 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ variable "pet_name_length" {
type = "string"
default = "2"
}

0 comments on commit 641eadd

Please sign in to comment.