Skip to content

Commit e35c506

Browse files
zekechiedo
andauthored
Update Crowdin Actions workflow to inherit old OAuth settings (#16096)
* update Actions workflow to use crowdin.yml for config * no need for this comment; CODEOWNERS will now trigger a ping * add a comment about why we need a custom PAT * update Crowdin branch names Co-authored-by: Chiedo John <[email protected]>
1 parent 5f7243c commit e35c506

File tree

3 files changed

+12
-30
lines changed

3 files changed

+12
-30
lines changed

.github/workflows/crowdin.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# Please ping @github/docs-localization in the PR whenever you update this file!
2-
31
name: Crowdin Sync
42

53
on:
@@ -25,18 +23,20 @@ jobs:
2523

2624
# Using a custom config temporarily to avoid clobbering the existing crowdin.yml
2725
# that is used by the github-help-docs OAuth integration.
28-
config: 'crowdin-actions-config.yml'
26+
config: 'crowdin.yml'
2927

3028
# This is the name of the git branch that Crowdin will create when opening a pull request.
3129
# This branch does NOT need to be manually created. It will be created automatically by the action.
32-
localization_branch_name: automated-crowdin-translations
30+
localization_branch_name: translations
3331

3432
# This is the name of the top-level directory that Crowdin will use for files.
3533
# Note that this is not a "branch" in the git sense, but more like a top-level directory in your Crowdin project.
3634
# This branch does NOT need to be manually created. It will be created automatically by the action.
37-
crowdin_branch_name: crowdin-main
35+
crowdin_branch_name: main
3836

3937
env:
38+
# Using an @octoglot token instead of the default Actions-provided GITHUB_TOKEN here
39+
# so that subsequent workflows will be able to run on the pull request created by this workflow.
4040
GITHUB_TOKEN: ${{ secrets.OCTOGLOT_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
4141

4242
# This is a numeric id, not to be confused with Crowdin API v1 "project identifier" string

crowdin-actions-config.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

crowdin.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,10 @@ files:
1616
"data/graphql",
1717
"data/products.yml"
1818
]
19+
20+
# These end up as env vars used by the GitHub Actions workflow
21+
project_id_env: CROWDIN_PROJECT_ID
22+
api_token_env: CROWDIN_PERSONAL_TOKEN
23+
24+
# https://support.crowdin.com/configuration-file-v3/#saving-directory-structure-on-server
25+
preserve_hierarchy: true

0 commit comments

Comments
 (0)