File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,19 +20,19 @@ jobs:
2020
2121 - name : Run style check
2222 id : style-check
23- run : echo "reviews =$(python3 scripts/build/style.py --base-sha ${{ github.event.pull_request.base.sha }} | jq -s -c .)" >> $GITHUB_OUTPUT
23+ run : echo "comments =$(python3 scripts/build/style.py --base-sha ${{ github.event.pull_request.base.sha }} | jq -s -c .)" >> $GITHUB_OUTPUT
2424
2525 - name : Post review
2626 uses : actions/github-script@v8
2727 id : post-comments
2828 env :
29- COMMENTS : ${{ steps.style-check.outputs.reviews }}
29+ COMMENTS : ${{ steps.style-check.outputs.comments }}
3030 with :
3131 github-token : ${{ secrets.GITHUB_TOKEN }}
3232 script : |
33- const reviews = JSON.parse(process.env.COMMENTS || "[]");
33+ const review_comments = JSON.parse(process.env.COMMENTS || "[]");
3434
35- const comments = reviews .map(r => ({
35+ const comments = review_comments .map(r => ({
3636 path: r.path,
3737 line: r.line,
3838 side: "RIGHT",
You can’t perform that action at this time.
0 commit comments