There was an error while loading. Please reload this page.
2 parents c7b0ec3 + 4778563 commit 231e24aCopy full SHA for 231e24a
1 file changed
.github/workflows/deploy.yml
@@ -21,16 +21,20 @@ env:
21
jobs:
22
deploy:
23
runs-on: ubuntu-latest
24
- if: ${{ github.event.workflow_run.conclusion == 'success' }}
+ if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
25
steps:
26
- name: Cancel previous runs
27
uses: styfle/cancel-workflow-action@0.5.0
28
with:
29
access_token: ${{ github.token }}
30
31
- uses: actions/checkout@v2.3.2
32
+ with:
33
+ ref: ${{ github.event.workflow_run.head_branch || github.ref }}
34
35
- uses: nimblehq/branch-tag-action@v1.1
36
37
38
39
- name: Set HEROKU_APP
40
run: |
0 commit comments