diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 9e8a313..33cf92b 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -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 @@ -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 }}