From 03d7088a0f3a77d2559830f79e3cc332bb5969b2 Mon Sep 17 00:00:00 2001 From: Dani Bodor Date: Tue, 18 Jun 2024 20:24:03 +0200 Subject: [PATCH] ci: fix lint action not returning exit code --- .github/workflows/lint.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 2c5969c43..4a6eea37a 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -37,5 +37,5 @@ jobs: - name: Check linting and formatting using ruff run: | python3 -m pip install ruff - ruff check || echo "Please ensure you have the latest version of ruff (`ruff -V`) installed locally." - ruff format --check || echo "Please ensure you have the latest version of ruff (`ruff -V`) installed locally." + ruff check || echo "Please ensure you have the latest ruff (`ruff -V`) installed locally." && (exit 1) + ruff format --check || echo "Please ensure you have the latest ruff (`ruff -V`) installed locally." && (exit 1)