Merge branch 'cw/ci-ghwf-check-ws-errors'
Dev support update. * cw/ci-ghwf-check-ws-errors: ci: make the whitespace checker more robust
This commit is contained in:
commit
15486b65d0
6
.github/workflows/check-whitespace.yml
vendored
6
.github/workflows/check-whitespace.yml
vendored
@ -58,12 +58,14 @@ jobs:
|
|||||||
- name: Add Check Output as Comment
|
- name: Add Check Output as Comment
|
||||||
uses: actions/github-script@v3
|
uses: actions/github-script@v3
|
||||||
id: add-comment
|
id: add-comment
|
||||||
|
env:
|
||||||
|
log: ${{ steps.check_out.outputs.checkout }}
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
github.issues.createComment({
|
await github.issues.createComment({
|
||||||
issue_number: context.issue.number,
|
issue_number: context.issue.number,
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
body: "Whitespace errors found in workflow ${{ github.workflow }}:\n\n${{ steps.check_out.outputs.checkout }}"
|
body: `Whitespace errors found in workflow ${{ github.workflow }}:\n\n\`\`\`\n${process.env.log.replace(/\\n/g, "\n")}\n\`\`\``
|
||||||
})
|
})
|
||||||
if: ${{ failure() }}
|
if: ${{ failure() }}
|
||||||
|
Loading…
Reference in New Issue
Block a user