Actions: Fix condition

This commit is contained in:
Unrud 2020-02-25 22:37:26 +01:00 committed by Unrud
parent 5c4989f26c
commit 5af2c6e69a

View File

@ -27,7 +27,7 @@ jobs:
- name: Run tests
run: python setup.py test
- name: Upload coverage to Coveralls
if: secrets.COVERALLS_REPO_TOKEN
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
env:
COVERALLS_PARALLEL: true
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
@ -37,7 +37,7 @@ jobs:
coveralls-finished:
needs: test
if: secrets.COVERALLS_REPO_TOKEN
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Set up Python