mirror of
https://github.com/wailsapp/wails.git
synced 2026-03-14 14:45:49 +01:00
* chore: update dependencies * docs: update source documents * chore: use Taskfile instead of scripts
39 lines
1,023 B
YAML
39 lines
1,023 B
YAML
name: Sync Translations
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
sync-translated-documents:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'wailsapp/wails'
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup Nodejs
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 18.x
|
|
|
|
- name: Install Task
|
|
uses: arduino/setup-task@v1
|
|
with:
|
|
version: 3.x
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Sync Translated Documents
|
|
env:
|
|
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
|
|
working-directory: ./website
|
|
run: task crowdin:pull
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v4
|
|
with:
|
|
commit-message: "docs: sync translations"
|
|
title: "docs: sync translations"
|
|
body: "- [x] Sync translated documents"
|
|
branch: chore/sync-translations
|
|
labels: translation
|
|
delete-branch: true
|
|
draft: true
|