-
-
Notifications
You must be signed in to change notification settings - Fork 126
39 lines (36 loc) · 1.21 KB
/
tranlate-languages.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: Generating Translations For strings
on:
push:
branches: [ main ]
jobs:
build-tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Building phoenix
env:
GCP_API_KEY: ${{ secrets.GCP_API_KEY }}
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }}
run: |
npm ci
npm run _translateStrings
ls -al docs
shell: bash
- name: Create Translation Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
commit-message: 'ci: update Translations'
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
title: '[Translations BOT] Update String translations'
add-paths: |
src/nls/**
body: |
Update string translations
- Auto-generated by `tranlate-languages.yml` action
- name: Check outputs
if: ${{ steps.cpr.outputs.pull-request-number }}
run: |
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"