forked from cataclysmbnteam/Cataclysm-BN
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.3 KB
/
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
36
37
38
39
name: "Pull translations from Transifex"
on:
schedule:
- cron: "42 1 * * 6"
jobs:
pull-translations:
if: github.repository == 'cataclysmbnteam/Cataclysm-BN'
runs-on: ubuntu-20.04
steps:
- name: "Install Transifex CLI"
run: |
curl -sL https://github.com/transifex/cli/releases/download/v1.6.7/tx-linux-amd64.tar.gz | sudo tar zxvf - -C /usr/bin tx
- name: "Checkout"
uses: actions/checkout@v4
- name: "Get current date"
uses: nanzm/get-time-action@v1.1
id: get-timestamp
with:
timeZone: 0
format: "YYYY-MM-DD"
- name: "Pull translations"
env:
TX_TOKEN: ${{ secrets.TX_TOKEN }}
run: tx pull --force
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3.10.0
with:
commit-message: "feat(i18n): routine i18n updates on ${{ steps.get-timestamp.outputs.time }}"
committer: Coolthulhu (BOT) <Coolthulhu@gmail.com>
author: Coolthulhu (BOT) <Coolthulhu@gmail.com>
token: ${{ secrets.TX_PR_CREATOR }}
branch: i18n
delete-branch: true
base: main
title: "feat(i18n): routine i18n updates on ${{ steps.get-timestamp.outputs.time }}"
body: ""
labels: Translation