From 21c6940fb1323b4441fde1870e6f684ba168a657 Mon Sep 17 00:00:00 2001 From: AramJonghu Date: Fri, 29 May 2026 20:12:36 +0200 Subject: [PATCH] either fail ? then check fail else pass --- .gitea/workflows/lint-rust.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/lint-rust.yml b/.gitea/workflows/lint-rust.yml index dbda41f..49250d3 100644 --- a/.gitea/workflows/lint-rust.yml +++ b/.gitea/workflows/lint-rust.yml @@ -38,7 +38,8 @@ jobs: rustfmt \ rust-clippy - - name: Format check + - id: format-check + name: Format check continue-on-error: true run: | if [ -n "$(find . -name "Cargo.toml" -print -quit)" ]; then @@ -56,7 +57,8 @@ jobs: echo "No Rust project found" fi - - name: Clippy + - id: clippy + name: Clippy run: | if [ -n "$(find . -name "Cargo.toml" -print -quit)" ]; then status=0 @@ -72,3 +74,12 @@ jobs: else echo "No Rust project found" fi + + - name: Check results + if: always() + run: | + if [ "${{ steps.format-check.outcome }}" = "failure" ] || [ "${{ steps.clippy.outcome }}" = "failure" ]; then + echo "One or more checks failed" + exit 1 + fi + echo "All checks passed"