diff --git a/.github/workflows/translations.yml b/.github/workflows/translations.yml index 8a6295d..085d949 100644 --- a/.github/workflows/translations.yml +++ b/.github/workflows/translations.yml @@ -7,23 +7,32 @@ on: pull_request: jobs: - run-script: + find-locales: runs-on: ubuntu-latest - - strategy: - matrix: - locale-file: ${{ fromJson(format('["{0}"]', join('","', steps.find-locales.outputs.files))) }} - + outputs: + files: ${{ steps.find.outputs.files }} steps: - name: Checkout repository uses: actions/checkout@v3 - name: Find locale JSON files - id: find-locales + id: find run: | files=$(ls dashboard/public/locales/*.json | jq -R -s -c 'split("\n")[:-1]') echo "files=$files" >> "$GITHUB_OUTPUT" + run-script: + needs: find-locales + runs-on: ubuntu-latest + + strategy: + matrix: + locale-file: ${{ fromJson(needs.find-locales.outputs.files) }} + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Run script with locale file run: | bash tools/check_translations.sh "${{ matrix.locale-file }}"