From 65ae18d453a49d576400c466bfe7e681c599bff0 Mon Sep 17 00:00:00 2001 From: 75efb6 <71222525+75efb6@users.noreply.github.com> Date: Wed, 8 Jan 2025 02:26:52 +0100 Subject: [PATCH] Update black.yml --- .github/workflows/black.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index a7a054b..4bd7b97 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -26,3 +26,7 @@ jobs: uses the [psf/black](https://github.com/psf/black) formatter to fix these issues. base: ${{ github.head_ref }} # Creates pull request onto pull request or commit branch branch: actions/black + - name: Fail if code is not formatted correctly + if: steps.action_black.outputs.is_formatted == 'true' + run: exit 1 +