diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 00529251..16f7d0e6 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -40,9 +40,9 @@ jobs: run: | sudo apt-get install -y xmlstarlet pip3 install alt-profanity-check - chmod +x scripts/checkProfanity.py - chmod +x scripts/generateFilelist.py - ./scripts/generateFilelist.py ${{ github.event.pull_request.head.ref }} + chmod +x ./scripts/checkProfanity.py + chmod +x ./scripts/generateFilelist.sh + ./scripts/generateFilelist.sh ${{ github.event.pull_request.head.ref }} shell: sh - uses: fabasoad/translation-action@main id: google-step diff --git a/scripts/generateFilelist.sh b/scripts/generateFilelist.sh index a0afbfa2..446097de 100755 --- a/scripts/generateFilelist.sh +++ b/scripts/generateFilelist.sh @@ -1,4 +1,5 @@ #!/bin/bash -echo "$@" \ No newline at end of file +echo "$@" +git diff -U0 HEAD~$1 | grep -E "^\+" \ No newline at end of file