Skip to content

Commit

Permalink
fix(ci): report through GITHUB_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Apr 13, 2024
1 parent 1d75dc0 commit d7e578d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/validate-renovate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
echo "---"
echo "Collected output: $H"
cat "$H"
echo "---"
# init and extract
OLD="$(mktemp)"
Expand All @@ -45,6 +46,8 @@ jobs:
DIFF_TO_BE_REPORTED="$(mktemp)"
mv "$DIFF_TO_BE_REPORTED" "${DIFF_TO_BE_REPORTED}.diff"
git diff --no-index "$OLD" "$NEW" >> "$DIFF_TO_BE_REPORTED"
printf 'DIFF=%s' "$(cat "$DIFF_TO_BE_REPORTED")" >> "$GITHUB_OUTPUT"
- name: report diff
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -55,7 +58,7 @@ jobs:
printf "I'm sorry, but this config should be migrated. Please apply following patch file to proceed:" >> "$COMMENT_BUFFER"
printf '```diff' >> "$COMMENT_BUFFER"
cat "$DIFF_TO_BE_REPORTED" >> "$COMMENT_BUFFER"
cat "$DIFF_TEXT" >> "$COMMENT_BUFFER"
printf '```' >> "$COMMENT_BUFFER"
gh pr comment -F "$COMMENT_BUFFER" "${URL}"

0 comments on commit d7e578d

Please sign in to comment.