From 5af2c6e69aa2f2ee46f66d3b4969fd8797b9029c Mon Sep 17 00:00:00 2001 From: Unrud Date: Tue, 25 Feb 2020 22:37:26 +0100 Subject: [PATCH] Actions: Fix condition --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 14e4e48..7a1b471 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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