Skip to content

Commit

Permalink
fix: ci: correct push 'if'
Browse files Browse the repository at this point in the history
  • Loading branch information
biodrone committed Nov 18, 2021
1 parent 62b5ec1 commit 4b38d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Deploy"

on:
push:
branches: [master, staging]
branches: [staging]
pull_request:
branches: [master, staging]

Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
tags: ${{ env.TEST_TAG }}

- name: Push
if: github.event.pull_request.merged
if: ${{ github.ref == 'refs/heads/master' }}
id: dockerhub_push
uses: docker/build-push-action@v2
with:
Expand Down

0 comments on commit 4b38d3f

Please sign in to comment.