forked from inveniosoftware/react-searchkit
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.2 KB
/
Copy pathi18n-push.yml
File metadata and controls
45 lines (38 loc) · 1.2 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
# -*- 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:push translations
on: workflow_dispatch # manually trigger
jobs:
i18n-extract:
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: Extract frontend messages
run: |
npm ci
npm run extract_messages
- name: Push source file using transifex client
uses: transifex/cli-action@v2
with:
token: ${{ secrets.TRANSIFEX_TOKEN }}
args: push -s
- name: Create Pull Request
uses: peter-evans/create-pull-request@v8
with:
commit-message: "i18n: push translations"
title: "i18n: push translations"
body: "i18n: push translations"
branch: 101-translations-push
delete-branch: true