Skip to content

Commit

Permalink
ci: if for the whole deploy job, not steps
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Oct 3, 2019
1 parent e0bbaae commit 84fc069
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ jobs:
NODE_TLS_REJECT_UNAUTHORIZED: 0

deploy:
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'panva/node-oidc-provider'
runs-on: ubuntu-latest
needs:
- test
Expand All @@ -162,5 +163,4 @@ jobs:
with:
ruby-version: 2.x
- run: gem install dpl
- if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'panva/node-oidc-provider'
run: dpl --provider=heroku --strategy=git --api-key=${{ secrets.HEROKU_AUTH_TOKEN }} --app=${{ matrix.app }}
- run: dpl --provider=heroku --strategy=git --api-key=${{ secrets.HEROKU_AUTH_TOKEN }} --app=${{ matrix.app }}

0 comments on commit 84fc069

Please sign in to comment.