Only deploy on main branch

This commit is contained in:
Gavin M. Roy 2020-04-06 18:32:18 -04:00
parent a7f8ef35c8
commit 324347e328

View file

@ -6,7 +6,7 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && github.repository == 'sprockets/sprockets-postgres'
container: python:3.8-alpine
steps:
- name: Checkout repository