From dfda760d2c18471a28445a8b313580cf1f4c4de2 Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 14 Feb 2026 09:22:54 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Refactor=20con?= =?UTF-8?q?dition=20for=20`handle=5Ffailures`=20to=20run=20regardless=20of?= =?UTF-8?q?=20previous=20job=20results?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This refactoring ensures that the `handle_failures` function is executed irrespective of the outcomes of previous jobs, improving the robustness and reliability of the system. --- .gitea/workflows/pr-check.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/pr-check.yaml b/.gitea/workflows/pr-check.yaml index eb42ff4..bcf3874 100644 --- a/.gitea/workflows/pr-check.yaml +++ b/.gitea/workflows/pr-check.yaml @@ -69,7 +69,9 @@ jobs: handle_failures: runs-on: ubuntu-latest needs: [leak_test, lint_test] - if: needs.leak_test.result != 'success' || needs.lint_test.result != 'success' + if: "${{ always() && ( + needs.leak_test.result != 'success' || + needs.lint_test.result != 'success' ) }}" steps: - name: Comment, label, and close PR