Skip to content

Commit

Permalink
Merge pull request #44 from nimblehq/bug/fix-deploy-workflow
Browse files Browse the repository at this point in the history
Fix cannot deploy on master branch
  • Loading branch information
hoangmirs authored Sep 24, 2020
2 parents c7b0ec3 + 4778563 commit 231e24a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,20 @@ env:
jobs:
deploy:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- uses: actions/[email protected]
with:
ref: ${{ github.event.workflow_run.head_branch || github.ref }}

- uses: nimblehq/[email protected]
with:
ref: ${{ github.event.workflow_run.head_branch || github.ref }}

- name: Set HEROKU_APP
run: |
Expand Down

0 comments on commit 231e24a

Please sign in to comment.