Skip to content

Commit be2706c

Browse files
committed
Try to use information from pull_request collection
1 parent b2481a8 commit be2706c

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.github/workflows/code-coverage-upload.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,10 @@ jobs:
2626
name: pr-number
2727
path: '.'
2828
run_id: ${{ github.event.workflow_run.id }}
29-
- id: trigger
30-
run: echo "pr-number=$(cat pr_number)" >> GITHUB_OUTPUT
31-
- name: Test pull_requests objects
32-
run: echo ${{ toJson(github.event.workflow_run.pull_requests) }}
3329
- name: Upload coverage reports to Codecov
3430
uses: codecov/codecov-action@v4
3531
with:
36-
override_branch: ${{ github.event.workflow_run.head_branch }}
37-
override_commit: ${{ github.event.workflow_run.head_sha }}
38-
override_pr: ${{ steps.trigger.outputs.pr-number }}
32+
override_branch: ${{ github.event.workflow_run.pull_requests.head.ref }}
33+
override_commit: ${{ github.event.workflow_run.pull_requests.head.sha }}
34+
override_pr: ${{ github.event.workflow_run.pull_requests.number }}
3935
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)