diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index c0e2cff..1826c54 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -21,15 +21,9 @@ jobs: # Run only if originated from a PR if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success' }} steps: - - name: Download coverage artifact - uses: actions/download-artifact@v4 + - uses: actions/checkout@v4 with: - name: coverage - github-token: ${{ github.token }} - run-id: ${{ github.event.workflow_run.id }} - - name: Get PR number - run: | - echo "PR_NUMBER=$(cat ./pr_number)" >> "$GITHUB_ENV" + ref: ${{ github.event.workflow_run.head_sha }} # Checkout codecov.yaml config from master - uses: actions/checkout@v4 with: @@ -37,9 +31,15 @@ jobs: sparse-checkout: | .github/codecov.yaml sparse-checkout-cone-mode: false - - uses: actions/checkout@v4 + - name: Download coverage artifact + uses: actions/download-artifact@v4 with: - ref: ${{ github.event.workflow_run.head_sha }} + name: coverage + github-token: ${{ github.token }} + run-id: ${{ github.event.workflow_run.id }} + - name: Get PR number + run: | + echo "PR_NUMBER=$(cat ./pr_number)" >> "$GITHUB_ENV" - name: Upload to codecov.io uses: codecov/codecov-action@v4 with: