Skip to content

Commit

Permalink
add in conditional for BRANCH_NAME (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisehuyton authored Nov 7, 2024
1 parent 034812d commit dabcc09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vars/checkTerraformFormat.groovy
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import uk.gov.hmcts.pipeline.deprecation.WarningCollector

def call(Map<String, String> params) {
def branch = env.CHANGE_BRANCH
def branch = env.CHANGE_BRANCH ?: env.BRANCH_NAME
def credentialsId = env.GIT_CREDENTIALS_ID
def gitEmailId = env.GIT_APP_EMAIL_ID

Expand Down

0 comments on commit dabcc09

Please sign in to comment.