Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: create crowdin action #2437

Merged
merged 4 commits into from
May 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 */

sy-records marked this conversation as resolved.
Show resolved Hide resolved
// =============================================================================
// DO NOT EDIT: This file is auto-generated by an /build/emoji.js
Expand Down
Loading