From 7b81bee073cb86f02ea2f2a9dc813193af64a82d Mon Sep 17 00:00:00 2001 From: Oleg Smirnov Date: Sat, 10 Aug 2024 18:10:34 +0400 Subject: [PATCH] Correct reviewdog variables --- .github/workflows/pr-compliance-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-compliance-check.yml b/.github/workflows/pr-compliance-check.yml index 745772e3..294edd40 100644 --- a/.github/workflows/pr-compliance-check.yml +++ b/.github/workflows/pr-compliance-check.yml @@ -39,10 +39,10 @@ jobs: - name: Run reviewdog ${{ matrix.tool }} env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} - CI_PULL_REQUEST: ${{ github.event.pull_request[0].number }} + CI_PULL_REQUEST: ${{ github.event.workflow_run.pull_requests[0].number }} CI_REPO_OWNER: ${{ github.repository_owner }} CI_REPO_NAME: ${{ github.event.repository.name }} - CI_COMMIT: ${{ github.event.workflow_run.pull_requests[0].head.repo }} + CI_COMMIT: ${{ github.event.workflow_run.pull_requests[0].head.sha }} run: echo reports/${{ matrix.tool }}-reviewdog.out | reviewdog -tee -reporter=github-pr-review -name=${{ matrix.tool }} -efm="${{ matrix.error-format }}" danger-check: if: github.event_name == 'pull_request_target'