-
Notifications
You must be signed in to change notification settings - Fork 12
51 lines (48 loc) · 1.6 KB
/
localization.yml
File metadata and controls
51 lines (48 loc) · 1.6 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Localization
on:
push:
branches: [ "main" ]
jobs:
build:
if: github.repository == 'MIA-Development-Team/Made-In-Abyss'
runs-on: ubuntu-latest
permissions:
contents: read
discussions: write
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: '20.x'
- run: npm i --omit=dev
working-directory: .github/scripts
- uses: actions/github-script@v8
with:
script: |
const script = require('./.github/scripts/localization.js')
await script({github, context})
crowdin:
if: github.repository == 'MIA-Development-Team/Made-In-Abyss'
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v6
- name: crowdin action
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: l10n/crowdin_translations
create_pull_request: true
pull_request_title: 'chore(l10n): new crowdin translations'
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
pull_request_base_branch_name: 'main'
config: .github/crowdin.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}