Skip to content

Commit

Permalink
Merge pull request #17 from Coalfire-CF/validate-branch
Browse files Browse the repository at this point in the history
output formatting
  • Loading branch information
douglas-f authored Aug 22, 2024
2 parents c6f0508 + 13621d2 commit 902df92
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/org-terraform-validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -46,4 +47,4 @@ jobs:
repo: context.repo.repo,
issue_number: issue_number,
body: `Terraform validation output:\n\`\`\`\n${result}\n\`\`\``
});
});

0 comments on commit 902df92

Please sign in to comment.