Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terraform fmt comment output wrongly with -diff option #31

Open
aminzar-access opened this issue Mar 1, 2022 · 0 comments
Open

Terraform fmt comment output wrongly with -diff option #31

aminzar-access opened this issue Mar 1, 2022 · 0 comments

Comments

@aminzar-access
Copy link

Hi,
When using -diff option for terraform fmt, the comment in PR looks weird. Thanks for looking into this.

image

      - name: Terraform Format
        id: fmt
        run: terraform -chdir=${{ env.working_directory}} fmt -check -recursive -diff
        continue-on-error: true

      - name: Post Format Result
        if: always() && github.event_name == 'pull_request' && (steps.fmt.outcome == 'success' || steps.fmt.outcome == 'failure')
        uses: robburger/terraform-pr-commenter@v1.5.0
        with:
          commenter_type: fmt
          commenter_input: ${{ format('{0}{1}', steps.fmt.outputs.stdout, steps.fmt.outputs.stderr) }}
          commenter_exitcode: ${{ steps.fmt.outputs.exitcode }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant