Skip to content

Commit

Permalink
Update Crowdin Workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-vara committed Feb 24, 2025
1 parent deeecc3 commit 2f96a96
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/crowdin-download.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
# Instructions for Using the Translation Workflow:
# Detailed guidelines for utilizing the translation workflow can be found in Section 5.12
# of our documentation: [How We Work](https://newfold-labs.github.io/how-we-work/).

name: Crowdin Download Action

on:
workflow_dispatch:
inputs:
base_branch:
description: 'Base branch for the pull request'
required: false
default: 'main'

permissions:
contents: write
pull-requests: write

jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
Expand All @@ -26,7 +35,7 @@ jobs:
auto_approve_imported: true
pull_request_title: 'New Crowdin Translations'
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
pull_request_base_branch_name: 'main'
pull_request_base_branch_name: ${{ inputs.base_branch || 'main' }}

env:
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
Expand All @@ -36,4 +45,4 @@ jobs:
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}

# Visit https://crowdin.com/settings#api-key to create this token
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
4 changes: 4 additions & 0 deletions .github/workflows/crowdin-upload.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Instructions for Using the Translation Workflow:
# Detailed guidelines for utilizing the translation workflow can be found in Section 5.12
# of our documentation: [How We Work](https://newfold-labs.github.io/how-we-work/).

name: Crowdin Upload Action

on:
Expand Down

0 comments on commit 2f96a96

Please sign in to comment.