-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 921 Bytes
/
readme.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
name: Translate README
on:
push:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
# ISO Language Codes: https://cloud.google.com/translate/docs/languages
- name: Check for README changes
id: check_readme
run: echo ::set-output name=changed::$(git diff --name-only ${{ github.event.before }} ${{ github.sha }} | grep README.md)
- name: Adding README - Chinese Traditional
if: steps.check_readme.outputs.changed == 'README.md'
uses: dephraiim/translate-readme@main
with:
LANG: zh-TW
- name: Adding README - English
if: steps.check_readme.outputs.changed == 'README.md'
uses: dephraiim/translate-readme@main
with:
LANG: en