forked from violentmonkey/violentmonkey
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (30 loc) · 1.05 KB
/
transifex-pull-translations.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
name: Download translations from Transifex
on:
workflow_dispatch:
schedule:
- cron: '0 1 * * 1'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install deps
run: yarn
- name: Update translations
run: node scripts/transifex.mjs pull
env:
TRANSIFEX_TOKEN: ${{ secrets.TRANSIFEX_TOKEN }}
- name: Create pull request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: i18n-patch
commit-message: 'chore: update locale files from Transifex'
title: Update locale files from Transifex
body: >-
Violentmonkey updates translations from Transifex every week automatically.
If you want to help translate into your language, please visit [the transifex platform](https://www.transifex.com/projects/p/violentmonkey-nex/resource/messagesjson/).