i18n-check #1
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: i18n-check | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'src/i18n-keysets/**' | |
workflow_dispatch: | |
# pull_request_target is needed instead of just pull_request | |
# because secret is needed to sync with weblate | |
# Attention! Read more at https://nathandavison.com/blog/github-actions-and-the-threat-of-malicious-pull-requests | |
pull_request_target: | |
branches: | |
- main | |
paths: | |
- 'src/i18n-keysets/**' | |
jobs: | |
i18n_check: | |
runs-on: ubuntu-latest | |
if: github.actor != 'WeblateGravity' | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Verifying changes with Weblate | |
uses: dgaponov/[email protected] | |
with: | |
SERVER_URL: "http://158.160.122.254" | |
TOKEN: ${{ secrets.WEBLATE_TOKEN }} | |
PROJECT: "datalens" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# TODO remove weblate branch after merge pull request |