forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
99 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,6 +15,7 @@ module.exports = [ | |
'actions/setup-node@v1', | ||
'actions/setup-ruby@v1', | ||
'actions/stale@v3', | ||
'crowdin/[email protected]', | ||
'dawidd6/action-delete-branch@v3', | ||
'docker://chinthakagodawita/autoupdate-action:v1', | ||
'github/codeql-action/analyze@v1', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Please ping @github/docs-localization in the PR whenever you update this file! | ||
|
||
name: Crowdin Sync | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
sync_with_crowdin: | ||
name: Sync with Crowdin | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Sync | ||
uses: crowdin/[email protected] | ||
with: | ||
upload_translations: true | ||
download_translations: true | ||
create_pull_request: true | ||
|
||
# Using a custom config temporarily to avoid clobbering the existing crowdin.yml | ||
# that is used by the github-help-docs OAuth integration. | ||
config: 'crowdin-actions-config.yml' | ||
|
||
# This is the name of the git branch that Crowdin will create when opening a pull request. | ||
# This branch does NOT need to be manually created. It will be created automatically by the action. | ||
localization_branch_name: automated-crowdin-translations | ||
|
||
# This is the name of the top-level directory that Crowdin will use for files. | ||
# Note that this is not a "branch" in the git sense, but more like a top-level directory in your Crowdin project. | ||
# This branch does NOT need to be manually created. It will be created automatically by the action. | ||
crowdin_branch_name: crowdin-main | ||
|
||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# This is a numeric id, not to be confused with Crowdin API v1 "project identifier" string | ||
# See "API v2" on https://crowdin.com/project/<your-project>/settings#api | ||
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | ||
|
||
# A personal access token, not to be confused with Crowdin API v1 "API key" | ||
# See https://crowdin.com/settings#api-key to generate a token | ||
# This token was created by logging into Crowdin with the octoglot user | ||
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
files: | ||
- source: /content/**/*.md | ||
translation: /translations/%locale%/%original_path%/%original_file_name% | ||
ignore: [ | ||
"/content/README.md" | ||
] | ||
- source: /data/**/*.yml | ||
translation: /translations/%locale%/%original_path%/%original_file_name% | ||
- source: /data/**/*.md | ||
translation: /translations/%locale%/%original_path%/%original_file_name% | ||
ignore: [ | ||
"data/README.md", | ||
"data/reusables/README.md", | ||
"data/variables/product.yml", | ||
"data/variables/README.md", | ||
"data/graphql", | ||
"data/products.yml" | ||
] | ||
|
||
# These end up as env vars used by the GitHub Actions workflow | ||
project_id_env: CROWDIN_PROJECT_ID | ||
api_token_env: CROWDIN_PERSONAL_TOKEN | ||
|
||
# https://support.crowdin.com/configuration-file-v3/#saving-directory-structure-on-server | ||
preserve_hierarchy: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
After you open a codespace, you can develop using {% data variables.product.prodname_vscode %}'s features, such as text editing, debugging, and Git commands. For more information, see the [{% data variables.product.prodname_vscode %} documentation](https://code.visualstudio.com/docs). | ||
You can edit code, debug, and use Git commands while developing in a codespace with {% data variables.product.prodname_vscode %}. For more information, see the [{% data variables.product.prodname_vscode %} documentation](https://code.visualstudio.com/docs). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
If you have enabled private mode on your instance, then opening this port is only required if you also enabled anonymous Git read access. For more information, see "[Enforcing repository management policies in your enterprise](/admin/policies/enforcing-repository-management-policies-in-your-enterprise#configuring-anonymous-git-read-access)." |