locale: Update translation files (114) (#7761) #17686
This file contains hidden or 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: Additional Checks | |
| # Checks which are not in standardized tools such as custom checks by scripts | |
| # in the source code or small 3rd party checks without large projects behind them. | |
| # Number of disconnected, but simple checks can be combined into one workflow | |
| # (and job) to reduce the number of jobs. | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - releasebranch_* | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| additional-checks: | |
| name: Additional checks | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| env: | |
| # renovate: datasource=pypi depName=prek | |
| PREK_VERSION: 0.4.5 | |
| steps: | |
| - name: Checkout repository contents | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| fetch-depth: 31 | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 | |
| with: | |
| python-version: "3.14" | |
| - name: Install uv and restore its cache | |
| uses: astral-sh/setup-uv@fac544c07dec837d0ccb6301d7b5580bf5edae39 # v8.2.0 | |
| with: | |
| # To not have the last commit JSON and release notes files affected on | |
| # releases, if copying the contents displayed in the CI logs. | |
| enable-cache: false | |
| - name: Check that files with the same content are the same | |
| run: | | |
| diff Dockerfile docker/ubuntu/Dockerfile | |
| - name: Generate core modules with last commit JSON file and test it | |
| run: | | |
| python -m pip install pytest pytest-depends pytest-timeout | |
| python utils/generate_last_commit_file.py . | |
| pytest utils/test_generate_last_commit_file.py | |
| - name: Generate release notes using git log | |
| run: | | |
| python -m pip install PyYAML requests | |
| # Git works without any special permissions. | |
| # Using current branch or the branch against the PR is open. | |
| # Using the last 30 commits (for branches, tags, and PRs). | |
| # End is the current (latest) commit. | |
| python ./utils/generate_release_notes.py log \ | |
| "${GITHUB_REF_NAME}" \ | |
| "$(git rev-parse HEAD~30)" \ | |
| "" | \ | |
| tee -a "release_notes_sample.md" | |
| - name: Upload release notes and core modules with last commit JSON file | |
| if: ${{ !cancelled() }} | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: release_notes-core_modules_with_last_commit | |
| path: |- | |
| core_modules_with_last_commit.json | |
| release_notes_sample.md | |
| - name: Remove created files | |
| run: rm --verbose -f release_notes_sample.md core_modules_with_last_commit.json | |
| - name: "Cache pre-commit/prek" | |
| # Not used for releases, only for running pre-commit | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 # zizmor: ignore[cache-poisoning] | |
| with: | |
| path: |- | |
| ~/.cache/prek | |
| key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }} | |
| - name: Install prek | |
| run: uv tool install "prek@${PREK_VERSION}" | |
| - name: "Run pre-commit/prek for fixes" | |
| run: | | |
| echo '```console' > "$GITHUB_STEP_SUMMARY" | |
| # Enable color output for pre-commit and remove it for the summary | |
| # Use --hook-stage=manual to enable slower pre-commit hooks that are skipped by default | |
| # Skip hooks already handled in another workflow, to avoid duplicate suggestions | |
| # Skip hooks with no fixes made with these hooks (for now) | |
| prek run --all-files --show-diff-on-failure --color=always --hook-stage=manual \ | |
| --skip ruff-check --skip ruff-format \ | |
| --skip actionlint \ | |
| --skip editorconfig-checker \ | |
| --skip flake8 \ | |
| --skip yamllint | \ | |
| tee >(sed -E 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})*)?[mGK]//g' >> "$GITHUB_STEP_SUMMARY") >&1 | |
| exit_code="${PIPESTATUS[0]}" | |
| echo '```' >> "$GITHUB_STEP_SUMMARY" | |
| exit "$exit_code" | |
| - name: Create and uploads code suggestions to apply for pre-commit | |
| # Will fail fast here if there are changes required | |
| id: diff-pre-commit | |
| # To run after pre-commit step exits with failure | |
| if: ${{ !cancelled() }} | |
| uses: ./.github/actions/create-upload-suggestions | |
| with: | |
| tool-name: pre-commit | |
| # To keep repo's file structure in formatted changes artifact | |
| extra-upload-changes: pyproject.toml | |
| - name: "Run pre-commit/prek" | |
| run: | | |
| echo '```console' > "$GITHUB_STEP_SUMMARY" | |
| # Enable color output for pre-commit and remove it for the summary | |
| # Use --hook-stage=manual to enable slower pre-commit hooks that are skipped by default | |
| prek run --all-files --show-diff-on-failure --color=always --hook-stage=manual | \ | |
| tee >(sed -E 's/\x1B\[([0-9]{1,2}(;[0-9]{1,2})*)?[mGK]//g' >> "$GITHUB_STEP_SUMMARY") >&1 | |
| exit_code="${PIPESTATUS[0]}" | |
| echo '```' >> "$GITHUB_STEP_SUMMARY" | |
| exit "$exit_code" |