Skip to content

Commit

Permalink
only run tf format on pr (#1282)
Browse files Browse the repository at this point in the history
Co-authored-by: Louise Huyton <[email protected]>
  • Loading branch information
hannah38 and louisehuyton authored Nov 8, 2024
1 parent b8ff9bc commit 8dd224a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vars/spinInfra.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,9 @@ def call(Map<String, ?> params) {

sh "terraform --version"

checkTerraformFormat()
onPR {
checkTerraformFormat()
}

sh """
terraform init -reconfigure \
Expand Down

0 comments on commit 8dd224a

Please sign in to comment.