From 72eccea4de2e10b46cdf52a1e7509e1ffdb37c12 Mon Sep 17 00:00:00 2001 From: Michele <ScrappyCocco@users.noreply.github.com> Date: Thu, 16 May 2024 17:20:40 +0200 Subject: [PATCH] Try to make the check fail even with continue on error --- .github/workflows/translation-check.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/translation-check.yml b/.github/workflows/translation-check.yml index dbac4bd..b5c0b0c 100644 --- a/.github/workflows/translation-check.yml +++ b/.github/workflows/translation-check.yml @@ -21,11 +21,21 @@ jobs: python -m pip install --upgrade pip pip install -r validator/requirements.txt - name: Translation Validator - continue-on-error: true + id: translationvalidat + continue-on-error: true # Continue to Output Step anyway run: | cd validator python main.py "../The_Colonists_Translation_Data_Italian.csv" + if [ $? -ne 0 ]; then + echo "::set-output name=status::failure" + else + echo "::set-output name=status::success" + fi - name: Output result run: | cd validator cat result.txt + if [ "${{ steps.translationvalidat.outputs.status }}" = "failure" ]; then + echo "::error::Previous step failed" + exit 1 + fi