From 08ca104d263c0b569ce07d2a2310b01c66ca1283 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 86644ffc..f98a1802 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: @@ -24,5 +26,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 }}