From b9d44e31a214b1c6f2eb6335aa865b3a9bd8ecaf Mon Sep 17 00:00:00 2001 From: Kayla Washburn Date: Mon, 27 Jun 2022 12:37:04 -0600 Subject: [PATCH] chore: add check for no-fail-fast label (#1017) --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7e002d8a..02222045 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,11 +1,12 @@ name: ci -on: +on: push: branches: [main] tags: ["**"] pull_request: branches: [main] + types: [labeled, opened, synchronize, reopened] jobs: build: @@ -19,8 +20,9 @@ jobs: # Don't fast-fail on tag build because publishing binaries shouldn't be # prevented if 'cargo publish' fails (which can be a false negative). fail-fast: - ${{ github.event_name == 'pull_request' || (github.ref != - 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/')) }} + ${{ (github.event_name == 'pull_request' || (github.ref != + 'refs/heads/main' && !startsWith(github.ref, 'refs/tags/'))) && + !contains(github.event.pull_request.labels.*.name, 'no-fail-fast') }} matrix: config: - os: macOS-latest