Skip to content

Commit f70af1f

Browse files
authored
ci: add base_sha to codecov/codecov-action upload step (#1864)
Signed-off-by: oliver könig <okoenig@nvidia.com>
1 parent a86a728 commit f70af1f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/cicd-main.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,11 @@ jobs:
315315
matrix:
316316
flag: [unit-test, e2e]
317317
steps:
318+
- name: Get PR info
319+
id: get-pr-info
320+
if: startsWith(github.ref, 'refs/heads/pull-request/')
321+
uses: nv-gha-runners/get-pr-info@main
322+
318323
- name: Checkout
319324
uses: actions/checkout@v6
320325

@@ -348,6 +353,7 @@ jobs:
348353
verbose: true
349354
flags: ${{ matrix.flag }}
350355
fail_ci_if_error: true
356+
base_sha: ${{ fromJSON(steps.get-pr-info.outputs.pr-info || '{}').base.sha }}
351357

352358
- name: Upload artifacts
353359
uses: actions/upload-artifact@v6

0 commit comments

Comments
 (0)