-
Notifications
You must be signed in to change notification settings - Fork 41
37 lines (33 loc) · 1.17 KB
/
i18n-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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:
types: ['opened', 'reopened', 'synchronize', 'closed']
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: "https://weblate.gravity-ui.com"
TOKEN: ${{ secrets.WEBLATE_TOKEN }}
PROJECT: "datalens"
GITHUB_TOKEN: ${{ secrets.WEBLATE_BOT_GITHUB_TOKEN }}
# TODO remove weblate branch after merge pull request