Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

crowdin.yml 2.2 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
  1. name: Crowdin Sync
  2. on:
  3. workflow_dispatch:
  4. schedule:
  5. - cron: '33 2 * * *' # every day at 2:33 UTC at least until automerge is working
  6. jobs:
  7. sync_with_crowdin:
  8. name: Sync with Crowdin
  9. if: github.repository == 'github/docs-internal'
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
  14. - name: Sync
  15. uses: crowdin/github-action@fd9429dd63d6c0f8a8cb4b93ad8076990bd6e688
  16. with:
  17. upload_translations: false
  18. download_translations: true
  19. create_pull_request: true
  20. # Using a custom config temporarily to avoid clobbering the existing crowdin.yml
  21. # that is used by the github-help-docs OAuth integration.
  22. config: 'crowdin.yml'
  23. # This is the name of the git branch that Crowdin will create when opening a pull request.
  24. # This branch does NOT need to be manually created. It will be created automatically by the action.
  25. localization_branch_name: translations
  26. # This is the name of the top-level directory that Crowdin will use for files.
  27. # Note that this is not a "branch" in the git sense, but more like a top-level directory in your Crowdin project.
  28. # This branch does NOT need to be manually created. It will be created automatically by the action.
  29. crowdin_branch_name: main
  30. env:
  31. # Using an @octoglot token instead of the default Actions-provided GITHUB_TOKEN here
  32. # so that subsequent workflows will be able to run on the pull request created by this workflow.
  33. GITHUB_TOKEN: ${{ secrets.OCTOGLOT_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
  34. # This is a numeric id, not to be confused with Crowdin API v1 "project identifier" string
  35. # See "API v2" on https://crowdin.com/project/<your-project>/settings#api
  36. CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
  37. # A personal access token, not to be confused with Crowdin API v1 "API key"
  38. # See https://crowdin.com/settings#api-key to generate a token
  39. # This token was created by logging into Crowdin with the octoglot user
  40. CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...