1
0
mirror of synced 2026-01-06 06:02:35 -05:00
Files
docs/.github/workflows/crowdin.yml
Zeke Sikelianos 5439891d1d Run Crowdin workflow only on private repo and update CODEOWNERS (#16010)
* only run Crowdin workflow on private repo

Co-Authored-By: Chiedo John <2156688+chiedo@users.noreply.github.com>

* organize codeowners for localization-related files

Co-Authored-By: Chiedo John <2156688+chiedo@users.noreply.github.com>

* do not upload translations

Co-Authored-By: Chiedo John <2156688+chiedo@users.noreply.github.com>

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-10-13 10:01:31 -07:00

53 lines
2.0 KiB
YAML

# Please ping @github/docs-localization in the PR whenever you update this file!
name: Crowdin Sync
on:
workflow_dispatch:
push:
branches:
- main
jobs:
sync_with_crowdin:
name: Sync with Crowdin
if: github.repository == 'github/docs-internal'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Sync
uses: crowdin/github-action@1.0.10
with:
upload_translations: false
download_translations: true
create_pull_request: true
# Using a custom config temporarily to avoid clobbering the existing crowdin.yml
# that is used by the github-help-docs OAuth integration.
config: 'crowdin-actions-config.yml'
# This is the name of the git branch that Crowdin will create when opening a pull request.
# This branch does NOT need to be manually created. It will be created automatically by the action.
localization_branch_name: automated-crowdin-translations
# This is the name of the top-level directory that Crowdin will use for files.
# Note that this is not a "branch" in the git sense, but more like a top-level directory in your Crowdin project.
# This branch does NOT need to be manually created. It will be created automatically by the action.
crowdin_branch_name: crowdin-main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# This is a numeric id, not to be confused with Crowdin API v1 "project identifier" string
# See "API v2" on https://crowdin.com/project/<your-project>/settings#api
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
# A personal access token, not to be confused with Crowdin API v1 "API key"
# See https://crowdin.com/settings#api-key to generate a token
# This token was created by logging into Crowdin with the octoglot user
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}