Skip to content

Commit

Permalink
github: Modify condition for coverage steps
Browse files Browse the repository at this point in the history
  • Loading branch information
saprykin committed May 16, 2024
1 parent 2452f9a commit f2379a8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,7 @@ jobs:
cd ../plibsys-build
ctest
- name: coverage-install
runs-on: coverage
if: ${{ success() && matrix.USE_COV == '1' }}
if: ${{ success() && matrix.USE_COV == '1' && github.ref == 'refs/heads/coverage' }}
run: |
pwd
if [ "$RUNNER_OS" == "Linux" ]; then
Expand All @@ -63,8 +62,7 @@ jobs:
fi
pip install codecov-cli
- name: coverage-run
runs-on: coverage
if: ${{ success() && matrix.USE_COV == '1' }}
if: ${{ success() && matrix.USE_COV == '1' && github.ref == 'refs/heads/coverage' }}
run: |
pwd
codecovcli create-commit -t ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit f2379a8

Please sign in to comment.