From 5439891d1de9ad2be99c12baf43e072f9d1dc455 Mon Sep 17 00:00:00 2001 From: Zeke Sikelianos Date: Tue, 13 Oct 2020 10:01:31 -0700 Subject: [PATCH] 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> --- .github/CODEOWNERS | 9 +++++++-- .github/workflows/crowdin.yml | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index eb71a6edef7a..3eb7f05d4013 100644 --- a/.github/CODEOWNERS +++ b/.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 diff --git a/.github/workflows/crowdin.yml b/.github/workflows/crowdin.yml index b9ceee7e5b2b..89b4f42689e6 100644 --- a/.github/workflows/crowdin.yml +++ b/.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