Skip to content

Commit 7b81bee

Browse files
committed
Correct reviewdog variables
1 parent 617cb6a commit 7b81bee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pr-compliance-check.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ jobs:
3939
- name: Run reviewdog ${{ matrix.tool }}
4040
env:
4141
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
CI_PULL_REQUEST: ${{ github.event.pull_request[0].number }}
42+
CI_PULL_REQUEST: ${{ github.event.workflow_run.pull_requests[0].number }}
4343
CI_REPO_OWNER: ${{ github.repository_owner }}
4444
CI_REPO_NAME: ${{ github.event.repository.name }}
45-
CI_COMMIT: ${{ github.event.workflow_run.pull_requests[0].head.repo }}
45+
CI_COMMIT: ${{ github.event.workflow_run.pull_requests[0].head.sha }}
4646
run: echo reports/${{ matrix.tool }}-reviewdog.out | reviewdog -tee -reporter=github-pr-review -name=${{ matrix.tool }} -efm="${{ matrix.error-format }}"
4747
danger-check:
4848
if: github.event_name == 'pull_request_target'

0 commit comments

Comments
 (0)