Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Apr 28, 2024
1 parent 22b140e commit 805dcdc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ jobs:
pip3 install alt-profanity-check
chmod +x ./scripts/checkProfanity.py
chmod +x ./scripts/generateFilelist.sh
SIZE=$(awk '{print NF}' <<< "${{needs.string-change-verification.outputs.files}}")
FILE_LIST="${{needs.string-change-verification.outputs.files}}"
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"
fi
Expand Down
6 changes: 6 additions & 0 deletions scripts/generateFilelist.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
#!/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
Expand Down

0 comments on commit 805dcdc

Please sign in to comment.