summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2020-11-11 21:18:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-11-11 21:18:38 (GMT)
commit15486b65d033fa3342ca8334ca8fa4c7ecba9a78 (patch)
tree2405a45d6471da8dd7bfa1020cef620f7d3d1a4f /.github
parent3fc24194c2ded50415f10476f15ce556d44c4c09 (diff)
parentcba2504d3de3ccd6809fa2ab484c2aaeeef5379b (diff)
downloadgit-15486b65d033fa3342ca8334ca8fa4c7ecba9a78.zip
git-15486b65d033fa3342ca8334ca8fa4c7ecba9a78.tar.gz
git-15486b65d033fa3342ca8334ca8fa4c7ecba9a78.tar.bz2
Merge branch 'cw/ci-ghwf-check-ws-errors'
Dev support update. * cw/ci-ghwf-check-ws-errors: ci: make the whitespace checker more robust
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/check-whitespace.yml6
1 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/check-whitespace.yml b/.github/workflows/check-whitespace.yml
index 9d070b9..80a9617 100644
--- a/.github/workflows/check-whitespace.yml
+++ b/.github/workflows/check-whitespace.yml
@@ -58,12 +58,14 @@ jobs:
- name: Add Check Output as Comment
uses: actions/github-script@v3
id: add-comment
+ env:
+ log: ${{ steps.check_out.outputs.checkout }}
with:
script: |
- github.issues.createComment({
+ await github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
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() }}