Skip to content

Commit

Permalink
fix(ci): surround the printed diff with code-fence
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Apr 13, 2024
1 parent d3e09c2 commit 226e88d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/validate-renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DIFF_TEXT: ${{ steps.lint.outputs.DIFF }}
URL: ${{ github.event.pull_request.html_url }}
run:
run: |
COMMENT_BUFFER="$(mktemp)"
# shellcheck disable=
printf "I'm sorry, but this config should be migrated. Please apply following patch file to proceed:" >> "$COMMENT_BUFFER"
printf '```' >> "$COMMENT_BUFFER"
cat "$DIFF_TO_BE_REPORTED" >> "$COMMENT_BUFFER"
printf '```' >> "$COMMENT_BUFFER"
gh pr comment -F "$COMMENT_BUFFER" "${URL}"

0 comments on commit 226e88d

Please sign in to comment.