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 ffc1baa commit 22b140e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
pip3 install alt-profanity-check
chmod +x ./scripts/checkProfanity.py
chmod +x ./scripts/generateFilelist.sh
array=(${{needs.string-change-verification.outputs.files}})
if [ "${array[@]}" -ne 1 ]; then
echo "Only pass the amount of commits and one translation file! You passed: ${array[@]}"
SIZE=$(awk '{print NF}' <<< "${{needs.string-change-verification.outputs.files}}")
if [ "$SIZE" -ne 1 ]; then
echo "Only pass the amount of commits and one translation file! You passed: $SIZE"
fi
TRANSLATIONS=$(./scripts/generateFilelist.sh ${{ github.event.pull_request.commits }} ${{needs.string-change-verification.outputs.files}})
echo "TRANSLATIONS=$TRANSLATIONS" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 22b140e

Please sign in to comment.