Skip to content

Commit 8241160

Browse files
author
Jonathan Yu
authored
chore: fix cancel workflow action (#197)
Due to a typo (github.event_type rather than github.event_name), the cancel previosu runs workflow action was not running.
1 parent 9605d3e commit 8241160

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
steps:
3131
- name: Cancel previous runs
3232
uses: styfle/cancel-workflow-action@0.9.1
33-
if: github.event_type == 'pull_request'
33+
if: github.event_name == 'pull_request'
3434

3535
- name: Checkout source
3636
uses: actions/checkout@v2
@@ -77,7 +77,7 @@ jobs:
7777
steps:
7878
- name: Cancel previous runs
7979
uses: styfle/cancel-workflow-action@0.9.1
80-
if: github.event_type == 'pull_request'
80+
if: github.event_name == 'pull_request'
8181

8282
- name: Checkout source
8383
uses: actions/checkout@v2

.github/workflows/fuzz.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
steps:
1818
- name: Cancel previous runs
1919
uses: styfle/cancel-workflow-action@0.9.1
20-
if: github.event_type == 'pull_request'
20+
if: github.event_name == 'pull_request'
2121

2222
- name: Checkout source
2323
uses: actions/checkout@v2

0 commit comments

Comments
 (0)