-
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 975 Bytes
/
translation_check.yml
File metadata and controls
34 lines (29 loc) · 975 Bytes
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
name: Check FTL Translations
on:
pull_request:
paths:
- '**/*.ftl'
jobs:
check_translations:
if: github.event.pull_request.merged == true && github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install fluent fluent.syntax PyYAML python-frontmatter PyGithub
- name: Check translations
uses: Anheledir/MissingLocaleTranslationsFTL@v1
env:
REFERENCE_FTL: 'BaseBotService/Locales/en.ftl'
GITHUB_HEAD_REF: ${{ github.head_ref }}
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_SHA: ${{ github.sha }}
GITHUB_EVENT_PATH: ${{ github.event_path }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}