From ab6d33e356c7d1efa20f9cccf49224ba6b34ba8b Mon Sep 17 00:00:00 2001 From: Ian Faust Date: Thu, 12 Dec 2024 08:56:27 +0100 Subject: [PATCH] Update codecov.yml --- .github/workflows/codecov.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index c1999f287f..0ab8cebec0 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -46,8 +46,11 @@ jobs: chmod +x codecov - name: Upload to codecov run: | - export PR=$("$GITHUB_REF" | awk -F / '{print $3}') + export PR=${{ github.event.workflow_run.pull_requests[0].number }} + echo ${{ github.event.workflow_run.triggering_actor.url }} + PR2=`gh pr view ${{ github.event.workflow_run.head_branch }} --json number -q .number` echo $PR + echo $PR2 if [ -n "${PR}" ]; then export PR="-P ${PR}"; fi echo here echo $PR