diff --git a/.github/workflows/org-terraform-validate.yml b/.github/workflows/org-terraform-validate.yml index 96ce93e..dbedc53 100644 --- a/.github/workflows/org-terraform-validate.yml +++ b/.github/workflows/org-terraform-validate.yml @@ -29,8 +29,9 @@ jobs: run: | set +e OUTPUT=$(terraform validate) - echo "$OUTPUT" - echo "::set-output name=result::$OUTPUT" + CLEAN_OUTPUT=$(echo "$OUTPUT" | sed -r "s/\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]//g") + echo "$CLEAN_OUTPUT" + echo "::set-output name=result::$CLEAN_OUTPUT" set -e continue-on-error: true @@ -46,4 +47,4 @@ jobs: repo: context.repo.repo, issue_number: issue_number, body: `Terraform validation output:\n\`\`\`\n${result}\n\`\`\`` - }); \ No newline at end of file + });