forked from inveniosoftware/react-searchkit
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (38 loc) · 1.23 KB
/
Copy pathi18n-pull.yml
File metadata and controls
46 lines (38 loc) · 1.23 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
# -*- coding: utf-8 -*-
#
# Copyright (C) 2023 Graz University of Technology.
# Copyright (C) 2026 KTH Royal Institute of Technology.
#
# React-Searchkit is free software; you can redistribute it and/or modify it
# under the terms of the MIT License; see LICENSE file for more details.
name: i18n:pull translations
on: workflow_dispatch # manually trigger
jobs:
i18n-pull:
runs-on: ubuntu-latest
env:
NODE-VERSION: 22
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: ${{ env.NODE-VERSION }}
- name: Install dependencies
run: npm ci
- name: Pull translated files using transifex client
uses: transifex/cli-action@v2
with:
token: ${{ secrets.TRANSIFEX_TOKEN }}
args: pull -a -f
- name: Compile translation catalogs
run: npm run compile_catalog
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: "i18n: pulled translations"
title: "i18n: pulled translations"
body: "i18n: pulled translations"
branch: 101-translations-pull
delete-branch: true