From 83eec969584bf168a871cd218bd9e63e1e0b7f38 Mon Sep 17 00:00:00 2001 From: Jonathan Yu Date: Mon, 13 Dec 2021 23:32:22 +0000 Subject: [PATCH] chore: fix cancel workflow action Due to a typo (github.event_type rather than github.event_name), the cancel previosu runs workflow action was not running. --- .github/workflows/build.yml | 4 ++-- .github/workflows/fuzz.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f3e4a619..750519b2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -30,7 +30,7 @@ jobs: steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.9.1 - if: github.event_type == 'pull_request' + if: github.event_name == 'pull_request' - name: Checkout source uses: actions/checkout@v2 @@ -77,7 +77,7 @@ jobs: steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.9.1 - if: github.event_type == 'pull_request' + if: github.event_name == 'pull_request' - name: Checkout source uses: actions/checkout@v2 diff --git a/.github/workflows/fuzz.yaml b/.github/workflows/fuzz.yaml index 3bfd66f9..a32c9348 100644 --- a/.github/workflows/fuzz.yaml +++ b/.github/workflows/fuzz.yaml @@ -17,7 +17,7 @@ jobs: steps: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.9.1 - if: github.event_type == 'pull_request' + if: github.event_name == 'pull_request' - name: Checkout source uses: actions/checkout@v2