1 parent ba76eea commit ce3cdc9Copy full SHA for ce3cdc9
2 files changed
.circleci/config.yml
@@ -28,7 +28,19 @@ jobs:
28
pixi run --as-is esmvaltool -- --help
29
pixi run --as-is esmvaltool config list
30
pixi run --as-is esmvaltool config show
31
+ - run:
32
+ name: Set the branch name for upload to Codecov
33
+ command: |
34
+ repo=${CIRCLE_PR_USERNAME}/${CIRCLE_PR_REPONAME}
35
+ branch=$(git branch --show-current)
36
+ if [ -z "$CODECOV_TOKEN" ] && [ "${repo}" != "${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}" ]; then
37
+ codecov_branch=${repo}:${branch}
38
+ else
39
+ codecov_branch=${branch}
40
+ fi
41
+ echo "export CODECOV_BRANCH=${codecov_branch}" >> $BASH_ENV
42
- codecov/upload:
43
+ branch: ${CODECOV_BRANCH}
44
files: "test-reports/coverage.xml"
45
disable_search: true
46
- store_test_results:
.github/workflows/run-tests-fork.yml
0 commit comments