Configure publish job to only run on push events

This commit is contained in:
Michael Bull 2021-01-30 17:08:00 +00:00
parent 3b75ebd6e4
commit 89c1b8a6fb

View File

@ -31,7 +31,7 @@ jobs:
publish: publish:
needs: check needs: check
if: github.ref == 'master' && github.event_name != 'pull_request' && needs.check.result == 'success' if: github.ref == 'refs/heads/master' && github.event_name == 'push' && needs.check.result == 'success'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps: