diff --git a/.gitea/workflows/quality-gate.yml b/.gitea/workflows/quality-gate.yml index 58001cb..dc17fc6 100644 --- a/.gitea/workflows/quality-gate.yml +++ b/.gitea/workflows/quality-gate.yml @@ -60,7 +60,7 @@ jobs: apk add -q lsof python3 jq curl ruby bats tests/ ' 2>&1 | tee "reports/${GITHUB_SHA:0:8}/bats/results.txt" - BATS_EXIT=$? + BATS_EXIT=${PIPESTATUS[1]} bash .ci/.gitea/scripts/bats-report.sh "reports/${GITHUB_SHA:0:8}/bats" || true STATE="success"