From b0dc6d29963878a1c2d5cd1e82a50ad445877ce5 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Thu, 7 Mar 2024 15:28:06 -0800 Subject: [PATCH] Pass the event path to reviewdog, not to `cat`. (#3753) Should hopefully cause suggestions to be successfully created. --- .github/workflows/pre_commit_suggestions.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pre_commit_suggestions.yaml b/.github/workflows/pre_commit_suggestions.yaml index 2a58ff472a9b..c0f38b7cb8c8 100644 --- a/.github/workflows/pre_commit_suggestions.yaml +++ b/.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