This repository has been archived by the owner on Sep 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
1 parent
6096e89
commit 92149c5
Showing
1 changed file
with
8 additions
and
3 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 |
---|---|---|
|
@@ -11,7 +11,6 @@ on: | |
- '**.md' | ||
- '**.rst' | ||
- '/docs/en_US/**' | ||
- '.github/worklflows/**' | ||
- '/crowdin.yml' | ||
schedule: | ||
- cron: '*/30 * * * *' | ||
|
@@ -29,6 +28,12 @@ jobs: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
# get branch name | ||
- name: Get the current branch name | ||
shell: bash | ||
run: echo "::set-output name=branch::${GITHUB_REF#refs/heads/}" | ||
id: branchname | ||
|
||
# crowin-translation | ||
- name: crowdin-action | ||
uses: crowdin/[email protected] | ||
|
@@ -54,11 +59,11 @@ jobs: | |
# Download translations with pushing to branch | ||
push_translations: true # optional, default is true | ||
# To download translations to the specified version branch | ||
localization_branch_name: l10n_${{ github.base_ref }} # optional, default is l10n_crowdin_action | ||
localization_branch_name: l10n_${{ steps.branchname.outputs.branch }} # optional, default is l10n_crowdin_action | ||
# Create pull request after pushing to branch | ||
create_pull_request: false # optional, default is true | ||
# Option to upload or download files to the specified version branch in your Crowdin project | ||
crowdin_branch_name: ${{ github.base_ref }} # optional | ||
crowdin_branch_name: ${{ steps.branchname.outputs.branch }} # optional | ||
# Option to specify a path to user-specific credentials | ||
# identity: # optional | ||
# Option to specify a path to the configuration file | ||
|