Skip to content

Commit 15486b6

Browse files
committed
Merge branch 'cw/ci-ghwf-check-ws-errors'
Dev support update. * cw/ci-ghwf-check-ws-errors: ci: make the whitespace checker more robust
2 parents 3fc2419 + cba2504 commit 15486b6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/check-whitespace.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@ jobs:
5858
- name: Add Check Output as Comment
5959
uses: actions/github-script@v3
6060
id: add-comment
61+
env:
62+
log: ${{ steps.check_out.outputs.checkout }}
6163
with:
6264
script: |
63-
github.issues.createComment({
65+
await github.issues.createComment({
6466
issue_number: context.issue.number,
6567
owner: context.repo.owner,
6668
repo: context.repo.repo,
67-
body: "Whitespace errors found in workflow ${{ github.workflow }}:\n\n${{ steps.check_out.outputs.checkout }}"
69+
body: `Whitespace errors found in workflow ${{ github.workflow }}:\n\n\`\`\`\n${process.env.log.replace(/\\n/g, "\n")}\n\`\`\``
6870
})
6971
if: ${{ failure() }}

0 commit comments

Comments
 (0)