mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
Pretty print status check output in comments, Remove the colors
This commit is contained in:
parent
417bf6795a
commit
df7becce20
11
.github/workflows/status.yml
vendored
11
.github/workflows/status.yml
vendored
|
@ -29,7 +29,8 @@ jobs:
|
|||
- name: Run status checks
|
||||
id: status_check
|
||||
run: |
|
||||
output=$(node ./status-checks)
|
||||
# Run status checks, Remove ANSI colors from the text
|
||||
output=$(node ./status-checks | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g')
|
||||
# Escape newlines so _all_ the output is included in the set-output
|
||||
output="${output//'%'/'%25'}"
|
||||
output="${output//$'\n'/'%0A'}"
|
||||
|
@ -42,7 +43,7 @@ jobs:
|
|||
uses: bubkoo/auto-comment@v1
|
||||
with:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
pullRequestSynchronize: "${{ steps.status_check.outputs.status_check_output }}"
|
||||
pullRequestAssigned: "${{ steps.status_check.outputs.status_check_output }}"
|
||||
pullRequestOpened: "${{ steps.status_check.outputs.status_check_output }}"
|
||||
pullRequestReopened: "${{ steps.status_check.outputs.status_check_output }}"
|
||||
pullRequestSynchronize: "```${{ steps.status_check.outputs.status_check_output }}```"
|
||||
pullRequestAssigned: "```${{ steps.status_check.outputs.status_check_output }}```"
|
||||
pullRequestOpened: "```${{ steps.status_check.outputs.status_check_output }}```"
|
||||
pullRequestReopened: "```${{ steps.status_check.outputs.status_check_output }}```"
|
||||
|
|
Loading…
Reference in New Issue
Block a user