diff --git a/.gitea/workflows/build-feature.yml b/.gitea/workflows/build-feature.yml index 9b6698d..2d1b8d9 100644 --- a/.gitea/workflows/build-feature.yml +++ b/.gitea/workflows/build-feature.yml @@ -35,7 +35,7 @@ jobs: echo "TOOL_OK=true" >> "${GITHUB_ENV}" - name: Run bats tests - if: env.TOOL_OK == 'true' + if: steps.prepare-bats.outcome == 'success' id: bats-tests shell: bash run: | @@ -57,7 +57,7 @@ jobs: exit ${BATS_EXIT} - name: Publish bats reports - if: env.TOOL_OK == 'true' + if: steps.prepare-bats.outcome == 'success' shell: bash run: | bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}/bats" @@ -106,7 +106,7 @@ jobs: echo "TOOL_OK=true" >> "${GITHUB_ENV}" - name: Run cucumber tests - if: env.TOOL_OK == 'true' + if: steps.prepare-cucumber.outcome == 'success' id: cucumber-tests shell: bash run: | @@ -120,7 +120,7 @@ jobs: exit ${CUCUMBER_EXIT} - name: Publish cucumber reports - if: env.TOOL_OK == 'true' + if: steps.prepare-cucumber.outcome == 'success' shell: bash run: | bash .ci/scripts/publish-git-pages.sh "reports/${GITHUB_SHA:0:8}/cucumber"