From 4d0ef519d083f27986e06ba1dedaab62286b9b3c Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sat, 10 Feb 2024 11:07:02 +0100 Subject: [PATCH] Ensure following steps are skipped if any one fails --- .github/workflows/ensure-version-consistency.yaml | 2 ++ .github/workflows/publish-to-pypi.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ensure-version-consistency.yaml b/.github/workflows/ensure-version-consistency.yaml index 50e4325..fab5cd7 100644 --- a/.github/workflows/ensure-version-consistency.yaml +++ b/.github/workflows/ensure-version-consistency.yaml @@ -8,6 +8,8 @@ on: jobs: check_version_and_tag: runs-on: ubuntu-latest + strategy: + fail-fast: true # Terminate the job immediately if any step fails steps: - name: Check out code uses: actions/checkout@v4 diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index dc25bbc..902cec5 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -8,6 +8,8 @@ on: jobs: publish: name: Publish to PyPI + strategy: + fail-fast: true # Terminate the job immediately if any step fails runs-on: ubuntu-latest steps: - name: Check out code