Unverified Commit 92149c58 authored by Chi Song's avatar Chi Song Committed by GitHub
Browse files

Fix localization action (#2677)

parent 6096e89e
......@@ -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/github-action@1.0.8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment