Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudlh committed Jun 13, 2024
1 parent a0b8d8f commit 83a64ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr_fmt.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Check Terraform formatting
id: fmt
run: |
FMT_OUTPUT=$(terraform fmt -check -recursive | base64)
FMT_OUTPUT=$(terraform fmt -check -recursive)
echo "fmt_output=${FMT_OUTPUT}" >> $GITHUB_OUTPUT
if [ -n "$FMT_OUTPUT" ]; then
echo "Formatting issues found in the following files:"
Expand All @@ -42,8 +42,8 @@ jobs:
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
fmt_output_decoded=$(echo -n "${{ steps.fmt.outputs.fmt_output }}" | base64 --decode)
const body = `Please run \`terraform fmt\` to format your Terraform files. The following files need formatting:\n\`\`\`\n${fmt_output_decoded}\n\`\`\``;
const fmtOutput = "${{ steps.fmt.outputs.fmt_output }}";
const body = `Please run \`terraform fmt\` to format your Terraform files. The following files need formatting:\n\`\`\`\n${fmtOutput}\n\`\`\``;
github.rest.pulls.createReview({
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down

0 comments on commit 83a64ca

Please sign in to comment.