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>
This commit is contained in:
Zeke Sikelianos 2020-10-13 10:01:31 -07:00 коммит произвёл GitHub
Родитель 53482ecfb2
Коммит 5439891d1d
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 3 удалений

9
.github/CODEOWNERS поставляемый
Просмотреть файл

@ -3,16 +3,21 @@
# https://help.github.com/articles/about-codeowners
# https://git-scm.com/docs/gitignore
/translations/ @github/docs-localization @github-actions
# Engineering
*.js @github/docs-engineering
/.github/ @github/docs-engineering
/script/ @github/docs-engineering
app.json @github/docs-engineering
crowdin.yml @github/docs-engineering
Dockerfile @github/docs-engineering
package-lock.json @github/docs-engineering
package.json @github/docs-engineering
# Localization
/.github/workflows/crowdin.yml @github/docs-localization
/crowdin*.yml @github/docs-engineering @github/docs-localization
/translations/ @github/docs-engineering @github/docs-localization @github-actions
# Site Policy
/content/github/site-policy/ @github/site-policy-admins
# Make sure that Octokit maintainers get notified about changes

3
.github/workflows/crowdin.yml поставляемый
Просмотреть файл

@ -11,6 +11,7 @@ on:
jobs:
sync_with_crowdin:
name: Sync with Crowdin
if: github.repository == 'github/docs-internal'
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -19,7 +20,7 @@ jobs:
- name: Sync
uses: crowdin/github-action@1.0.10
with:
upload_translations: true
upload_translations: false
download_translations: true
create_pull_request: true