From 325b4a8ce5c61f614a94072dbafa9ed645be0188 Mon Sep 17 00:00:00 2001 From: moilanik Date: Sat, 13 Jun 2026 04:42:20 +0300 Subject: [PATCH] =?UTF-8?q?eik=C3=B6=20saataana=20saada=20mill=C3=A4=C3=A4?= =?UTF-8?q?n=20toimimaan?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/build-feature.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-feature.yml b/.gitea/workflows/build-feature.yml index 4d51f73..b1aa1c0 100644 --- a/.gitea/workflows/build-feature.yml +++ b/.gitea/workflows/build-feature.yml @@ -76,7 +76,9 @@ jobs: npx cucumber-js \ --format json:"reports/${GITHUB_SHA:0:8}/cucumber/report.json" \ --format html:"reports/${GITHUB_SHA:0:8}/cucumber/index.html" 2>&1 - echo $? > cucumber-exit-code.txt + CUCUMBER_EXIT=$? + echo "CUCUMBER_EXIT=${CUCUMBER_EXIT}" >> "${GITHUB_ENV}" + exit ${CUCUMBER_EXIT} - name: Publish cucumber reports if: always() @@ -88,7 +90,7 @@ jobs: if: always() shell: bash run: | - if [ "$(cat cucumber-exit-code.txt)" = "0" ]; then + if [ "${CUCUMBER_EXIT}" = "0" ]; then STATUS="success" DESC="Cucumber tests passed" else