File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -277,5 +277,8 @@ jobs:
277277 name : tests-coverage-cache-${{ github.run_number }}-24
278278 path : .
279279 - name : Report Coverage with Flags
280- run : node ./scripts/codecov-upload-flags.mjs ${{ github.event.pull_request.head.sha }} ${{ github.event.pull_request.head.label }}
280+ run : node ./scripts/codecov-upload-flags.mjs
281+ env :
282+ COMMIT_SHA : ${{ github.event.pull_request.head.sha }}
283+ PR_BRANCH_NAME : ${{ github.event.pull_request.head.label }}
281284
Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ import path from 'path';
66// Usage
77// node ./scripts/codecov-upload-flags.mjs
88
9- const commitSha = process . argv [ 2 ] ;
10- const branchName = process . argv [ 3 ] ;
9+ const commitSha = process . env . COMMIT_SHA ;
10+ const branchName = process . env . PR_BRANCH_NAME ;
1111
1212const readPkg = ( dir ) => JSON . parse ( readFileSync ( path . join ( dir , 'package.json' ) , 'utf8' ) ) ;
1313const pkgInfo = readPkg ( '.' ) ;
You can’t perform that action at this time.
0 commit comments