Skip to content

Commit

Permalink
ci: create crowdin action (#2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records authored May 30, 2024
1 parent 15ed3b7 commit a539808
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .github/crowdin/crowdin-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
files:
- source: /*.md
translation: /%two_letters_code%/%original_file_name%
ignore:
- '/_coverpage.md'
- '/_navbar.md'

project_id_env: CROWDIN_PROJECT_ID
api_token_env: CROWDIN_PERSONAL_TOKEN
30 changes: 30 additions & 0 deletions .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Crowdin Action

on:
workflow_dispatch:
push:
paths:
- 'docs/**.md'
branches: [develop, master]

jobs:
crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Crowdin push
uses: crowdin/github-action@v1
with:
upload_sources: true
upload_translations: false
download_translations: false
push_translations: false
config: '.github/crowdin/crowdin-push.yml'
crowdin_branch_name: ${{ github.ref_name }}
base_path: ${{ github.workspace }}/docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
2 changes: 1 addition & 1 deletion src/core/render/emoji-data.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* eslint-disable */

// =============================================================================
// DO NOT EDIT: This file is auto-generated by an /build/emoji.js
Expand Down

0 comments on commit a539808

Please sign in to comment.