Regenerate translations for all add-ons #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Regenerate translations for all add-ons | |
on: | |
workflow_dispatch: | |
jobs: | |
regenerateTranslations: | |
permissions: | |
contents: write | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python-version: [ 3.11 ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
path: datastore | |
- name: Create validation errors file | |
run: echo "" > validationErrors.md | |
- name: Checkout validate repo | |
uses: actions/checkout@v4 | |
with: | |
repository: nvaccess/addon-datastore-validation | |
path: validation | |
submodules: true | |
- name: Install addon-datastore-validation dependencies | |
run: | | |
python -m pip install --upgrade wheel | |
pip install -r validation/requirements.txt | |
- name: Regenerate translations | |
run: | | |
validation/regenerateTranslations ` | |
--dir datastore\addons ` | |
--output validationErrors.md | |
- name: Commit & Push changes | |
uses: actions-js/[email protected] | |
with: | |
message: "[Automated] Regenerate translations" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
directory: datastore | |
branch: master | |
- name: Upload validation errors as artifact | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: validationErrors | |
path: validationErrors.md | |
call-workflow: | |
needs: regenerateTranslations | |
uses: ./.github/workflows/transformDataToViews.yml |