From 7601f1581e2e10bd477d4a5774127204cde17a32 Mon Sep 17 00:00:00 2001 From: moilanik Date: Sun, 14 Jun 2026 06:30:39 +0300 Subject: [PATCH] tool error -> commit job status --- .gitea/workflows/quality-gate.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/quality-gate.yml b/.gitea/workflows/quality-gate.yml index 6127b64..b06e23d 100644 --- a/.gitea/workflows/quality-gate.yml +++ b/.gitea/workflows/quality-gate.yml @@ -57,8 +57,8 @@ jobs: -w /repo \ --entrypoint bash ${{ inputs.bats-image }} \ -c 'apk add -q lsof python3 jq curl ruby && \ - bats tests/ | tee /reports/results.txt' - BATS_EXIT=$? + bats tests/' | tee "$(pwd)/reports/${GITHUB_SHA:0:8}/bats/results.txt" + BATS_EXIT=${PIPESTATUS[0]} bash .ci/.gitea/scripts/bats-report.sh "reports/${GITHUB_SHA:0:8}/bats" || true echo "BATS_EXIT=${BATS_EXIT}" >> "${GITHUB_ENV}" exit ${BATS_EXIT}