Просмотр исходного кода

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

Should hopefully cause suggestions to be successfully created.
Richard Smith 2 лет назад
Родитель
Сommit
b0dc6d2996
1 измененных файлов с 3 добавлено и 2 удалено
  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