Skip to content

Commit

Permalink
fix: Indentation for Setup Terraform step
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmooreio committed Oct 14, 2024
1 parent da4cc65 commit 1675a19
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions code-formatter/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,10 @@ runs:
shell: bash

- name: Setup Terraform
uses: hashicorp/setup-terraform@v3.1.2 # v3.1.2
with:
terraform_version: "${{ inputs.terraform-version }}"
terraform_wrapper: false
uses: hashicorp/setup-terraform@v3.1.2 # v3.1.2
with:
terraform_version: "${{ inputs.terraform-version }}"
terraform_wrapper: false

- name: Get PR changed files via Git and code format files
run: |
Expand Down Expand Up @@ -282,15 +282,15 @@ runs:
}')
echo "Mutation Payload: $mutation_payload"
# Send the mutation request to GitHub's GraphQL API and capture the response
RESPONSE=$(curl -X POST -H "Authorization: bearer $GITHUB_TOKEN" \
-H "Content-Type: application/json" \
-d "$mutation_payload" https://api.github.com/graphql)
# Parse the commit OID from the response
COMMIT_OID=$(echo "$RESPONSE" | jq -r ".data.createCommitOnBranch.commit.oid")
# Check if the commit was successfully created
if [ "$COMMIT_OID" != "null" ]; then
echo "Commit successfully created with OID: $COMMIT_OID"
Expand All @@ -304,4 +304,3 @@ runs:
fi
fi
shell: bash

0 comments on commit 1675a19

Please sign in to comment.