Skip to content

Commit

Permalink
chore: Rewrite README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
MysticalDevil committed Nov 14, 2023
1 parent 5f47754 commit 02744c5
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/readme.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,25 @@
name: Translate README

on:
push:
branches:
- main
- master

jobs:
build:
if: contains(toJSON(github.event.commits.*.modified), 'README.md')
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)

# ISO Langusge Codes: https://cloud.google.com/translate/docs/languages
- 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

0 comments on commit 02744c5

Please sign in to comment.