File tree Expand file tree Collapse file tree 8 files changed +11
-15
lines changed Expand file tree Collapse file tree 8 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 1
1
name : terraform-fmt
2
2
on :
3
- push :
4
- branches : [main]
5
3
pull_request :
6
4
branches : [main]
7
5
11
9
steps :
12
10
# checkout code
13
11
- uses : actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
12
+ with :
13
+ ref : ${{ github.event.pull_request.head.ref }}
14
+ repository : ${{ github.event.pull_request.head.repo.full_name }}
14
15
15
16
# format terraform
16
17
- name : Setup Terraform
17
18
uses : hashicorp/setup-terraform@v2
18
19
with :
19
20
terraform_version : " 1.3.0"
20
21
- name : Terraform fmt
21
- run : terraform fmt -recursive
22
-
23
- # Commit all changed files back to the repository
24
- - uses : stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a
25
- with :
26
- commit_message : Formatted Terraform
22
+ run : terraform fmt -check -recursive
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ provider "tfe" {
9
9
#
10
10
# https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/data-sources/project
11
11
data "tfe_project" "tfc_project" {
12
- name = var. tfc_project_name
12
+ name = var. tfc_project_name
13
13
organization = var. tfc_organization_name
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ provider "tfe" {
9
9
#
10
10
# https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/data-sources/project
11
11
data "tfe_project" "tfc_project" {
12
- name = var. tfc_project_name
12
+ name = var. tfc_project_name
13
13
organization = var. tfc_organization_name
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ provider "tfe" {
9
9
#
10
10
# https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/data-sources/project
11
11
data "tfe_project" "tfc_project" {
12
- name = var. tfc_project_name
12
+ name = var. tfc_project_name
13
13
organization = var. tfc_organization_name
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ provider "tfe" {
9
9
#
10
10
# https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/data-sources/project
11
11
data "tfe_project" "tfc_project" {
12
- name = var. tfc_project_name
12
+ name = var. tfc_project_name
13
13
organization = var. tfc_organization_name
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ provider "tfe" {
9
9
#
10
10
# https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/data-sources/project
11
11
data "tfe_project" "tfc_project" {
12
- name = var. tfc_project_name
12
+ name = var. tfc_project_name
13
13
organization = var. tfc_organization_name
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ provider "tfe" {
9
9
#
10
10
# https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/data-sources/project
11
11
data "tfe_project" "tfc_project" {
12
- name = var. tfc_project_name
12
+ name = var. tfc_project_name
13
13
organization = var. tfc_organization_name
14
14
}
15
15
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ provider "tfe" {
9
9
#
10
10
# https://registry.terraform.io/providers/hashicorp/tfe/latest/docs/data-sources/project
11
11
data "tfe_project" "tfc_project" {
12
- name = var. tfc_project_name
12
+ name = var. tfc_project_name
13
13
organization = var. tfc_organization_name
14
14
}
15
15
You can’t perform that action at this time.
0 commit comments