Explorar o código

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

Should hopefully cause suggestions to be successfully created.
Richard Smith %!s(int64=2) %!d(string=hai) anos
pai
achega
b0dc6d2996
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      .github/workflows/pre_commit_suggestions.yaml

+ 3 - 2
.github/workflows/pre_commit_suggestions.yaml

@@ -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