mirror of
https://github.com/go-task/task.git
synced 2025-08-10 22:42:19 +02:00
feat(website): add Crowdin CLI tool and workflow
This commit is contained in:
committed by
Andrey Nering
parent
65f5222a2a
commit
fc0280a6ab
32
.github/workflows/sync-translated-documents.yml
vendored
Normal file
32
.github/workflows/sync-translated-documents.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Sync Translated Documents
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
sync-translated-documents:
|
||||
runs-on: ubuntu-latest
|
||||
if: github.repository == 'go-task/task'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install Task
|
||||
uses: arduino/setup-task@v1
|
||||
with:
|
||||
version: 3.x
|
||||
|
||||
- name: Sync Translated Documents
|
||||
run: task crowdin:pull
|
||||
env:
|
||||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
||||
working-directory: ./docs
|
||||
|
||||
- name: Create Pull Request
|
||||
uses: peter-evans/create-pull-request@v4
|
||||
with:
|
||||
commit-message: "docs: sync translated documents"
|
||||
title: "docs: sync translated documents"
|
||||
body: "- [x] Sync translated documents"
|
||||
branch: feature/auto-sync-translated-documents
|
||||
delete-branch: true
|
||||
draft: true
|
Reference in New Issue
Block a user