Skip to content

Commit 5439891

Browse files
zekechiedo
andauthored
Run Crowdin workflow only on private repo and update CODEOWNERS (#16010)
* only run Crowdin workflow on private repo Co-Authored-By: Chiedo John <[email protected]> * organize codeowners for localization-related files Co-Authored-By: Chiedo John <[email protected]> * do not upload translations Co-Authored-By: Chiedo John <[email protected]> Co-authored-by: Chiedo John <[email protected]>
1 parent 53482ec commit 5439891

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/CODEOWNERS

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,21 @@
33
# https://help.github.com/articles/about-codeowners
44
# https://git-scm.com/docs/gitignore
55

6-
/translations/ @github/docs-localization @github-actions
6+
# Engineering
77
*.js @github/docs-engineering
88
/.github/ @github/docs-engineering
99
/script/ @github/docs-engineering
1010
app.json @github/docs-engineering
11-
crowdin.yml @github/docs-engineering
1211
Dockerfile @github/docs-engineering
1312
package-lock.json @github/docs-engineering
1413
package.json @github/docs-engineering
1514

15+
# Localization
16+
/.github/workflows/crowdin.yml @github/docs-localization
17+
/crowdin*.yml @github/docs-engineering @github/docs-localization
18+
/translations/ @github/docs-engineering @github/docs-localization @github-actions
19+
20+
# Site Policy
1621
/content/github/site-policy/ @github/site-policy-admins
1722

1823
# Make sure that Octokit maintainers get notified about changes

.github/workflows/crowdin.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
jobs:
1212
sync_with_crowdin:
1313
name: Sync with Crowdin
14+
if: github.repository == 'github/docs-internal'
1415
runs-on: ubuntu-latest
1516
steps:
1617
- name: Checkout
@@ -19,7 +20,7 @@ jobs:
1920
- name: Sync
2021
uses: crowdin/[email protected]
2122
with:
22-
upload_translations: true
23+
upload_translations: false
2324
download_translations: true
2425
create_pull_request: true
2526

0 commit comments

Comments
 (0)