Pass the event path to reviewdog, not to cat. (#3753)

Should hopefully cause suggestions to be successfully created.
This commit is contained in:
Richard Smith authored and GitHub committed 2024-03-07 23:28:06 +00:00
1 parent abf23ae7fe
commit b0dc6d2996
1 file changed
+3 -2
@@ -47,5 +47,6 @@ jobs:
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
GITHUB_EVENT_PATH=./event cat ./diff | \
reviewdog -f=diff -f.diff.strip=1 -reporter=github-pr-review
cat ./diff | \
GITHUB_EVENT_PATH=./event \
reviewdog -f=diff -f.diff.strip=1 -reporter=github-pr-review