Skip to content

Commit 3bc1670

Browse files
committed
fix(github): codecov branch name;
- Fix PR ref names in codecov calls.
1 parent e9263b4 commit 3bc1670

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/pytest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ jobs:
414414
415415
source /srv/app/venv/bin/activate
416416
417-
codecov -v upload-coverage -t ${{ secrets.CODECOV_TOKEN }} --report-type coverage --slug open-data/ckanext-recombinant --git-service github --branch ${{ github.ref_name }} --network-root-folder /srv/app/src/ckanext-recombinant --commit-sha ${{ github.sha }}
417+
codecov -v upload-coverage -t ${{ secrets.CODECOV_TOKEN }} --report-type coverage --slug open-data/ckanext-recombinant --git-service github --branch ${{ github.head_ref || github.ref_name }} --network-root-folder /srv/app/src/ckanext-recombinant --commit-sha ${{ github.sha }}
418418
- name: Upload Test Results to CodeCov
419419
if: ${{ !cancelled() }}
420420
continue-on-error: true
@@ -423,7 +423,7 @@ jobs:
423423
424424
source /srv/app/venv/bin/activate
425425
426-
codecov -v do-upload -t ${{ secrets.CODECOV_TOKEN }} -f /srv/app/results/junit_results.xml --report-type test_results --slug open-data/ckanext-recombinant --git-service github --branch ${{ github.ref_name }} --network-root-folder /srv/app/src/ckanext-recombinant --commit-sha ${{ github.sha }}
426+
codecov -v do-upload -t ${{ secrets.CODECOV_TOKEN }} -f /srv/app/results/junit_results.xml --report-type test_results --slug open-data/ckanext-recombinant --git-service github --branch ${{ github.head_ref || github.ref_name }} --network-root-folder /srv/app/src/ckanext-recombinant --commit-sha ${{ github.sha }}
427427
- name: Pytest Coverage Console Report
428428
run: |
429429
set -ex

0 commit comments

Comments
 (0)