From db1be8fad22dcdabdabc80bbdc4a4ef538b5bd66 Mon Sep 17 00:00:00 2001 From: Peter Van Dyken Date: Sat, 13 Jul 2024 15:23:04 -0400 Subject: [PATCH] Specify sha and PR number in codecov upload --- .github/workflows/upload_coverage.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/upload_coverage.yml b/.github/workflows/upload_coverage.yml index 8c877124..2d1697d0 100644 --- a/.github/workflows/upload_coverage.yml +++ b/.github/workflows/upload_coverage.yml @@ -13,6 +13,8 @@ jobs: steps: - name: checkout repository uses: actions/checkout@v4 + with: + ref: ${{ github.event.workflow_run.head_sha }} - name: download coverage reports uses: actions/download-artifact@v4 with: @@ -23,5 +25,7 @@ jobs: with: verbose: true fail_ci_if_error: true + override_commit: ${{ github.event.workflow_run.head_sha }} + override_pr: ${{ github.event.workflow_run.pull_requests.number }} env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}