We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fc2419 + cba2504 commit 15486b6Copy full SHA for 15486b6
.github/workflows/check-whitespace.yml
@@ -58,12 +58,14 @@ jobs:
58
- name: Add Check Output as Comment
59
uses: actions/github-script@v3
60
id: add-comment
61
+ env:
62
+ log: ${{ steps.check_out.outputs.checkout }}
63
with:
64
script: |
- github.issues.createComment({
65
+ await github.issues.createComment({
66
issue_number: context.issue.number,
67
owner: context.repo.owner,
68
repo: context.repo.repo,
- 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\`\`\``
70
})
71
if: ${{ failure() }}
0 commit comments