From b28aa1029ce67150cd7c6e00ecdc0903098bc594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felix=20N=C3=BCsse?= Date: Sun, 28 Apr 2024 09:39:31 +0200 Subject: [PATCH] test --- .github/workflows/translations.yml | 1 + scripts/generateFilelist.sh | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index fd32b03c..cf9265f6 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -50,6 +50,7 @@ jobs: SIZE=$(echo "$FILE_LIST" | awk '{print NF}') if [ "$SIZE" -ne 1 ]; then echo "Only pass the amount of commits and one translation file! You passed: $SIZE" + exit 1 fi TRANSLATIONS=$(./scripts/generateFilelist.sh ${{ github.event.pull_request.commits }} ${{needs.string-change-verification.outputs.files}}) echo "TRANSLATIONS=$TRANSLATIONS" >> $GITHUB_OUTPUT diff --git a/scripts/generateFilelist.sh b/scripts/generateFilelist.sh index 9cb0e2b6..6808aa15 100755 --- a/scripts/generateFilelist.sh +++ b/scripts/generateFilelist.sh @@ -1,11 +1,5 @@ #!/bin/bash - -TEST="app/src/main/res/values/strings.xml scripts/checkProfanity.py" -SIZE=$(echo "$TEST" | awk '{print NF}') - -echo $SIZE - if [ "$#" -ne 2 ]; then echo "Only pass the amount of commits and one translation file!" exit 1