Skip to content

Commit

Permalink
chore: something
Browse files Browse the repository at this point in the history
  • Loading branch information
imnaiyar committed Nov 3, 2024
1 parent dc93676 commit 4efe3e7
Showing 1 changed file with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions .github/workflows/crowdin-action.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
name: Crowdin Action

on:
schedule:
- cron: "0 0 * * *" # Run every hour
workflow_dispatch:

jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: crowdin action
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: crowdin_translate
create_pull_request: true
pull_request_title: "chore: new translations [crowdin]"
pull_request_base_branch_name: "main"
pull_request_labels: crowdin, translations
commit_message: "chore: translations"
github_user_name: "github-actions[bot]"
github_user_email: "github-actions[bot]@users.noreply.github.com"
download_translations_args: "-l hi -l ja -l ru"
config: crowdin.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}

CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
name: Crowdin Action

on:
schedule:
- cron: "0 0 * * *" # Run every hour
workflow_dispatch:

jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
id-token: write

steps:
- name: Checkout
uses: actions/checkout@v4

- name: crowdin action
uses: crowdin/github-action@v2
with:
upload_sources: true
upload_translations: true
download_translations: true
localization_branch_name: crowdin_translate
create_pull_request: true
pull_request_title: "chore: new translations [crowdin]"
pull_request_base_branch_name: "main"
pull_request_labels: crowdin, translations
commit_message: "chore: translations"
github_user_name: "github-actions[bot]"
github_user_email: "github-actions[bot]@users.noreply.github.com"
download_translations_args: "-l hi -l ja -l ru"
config: crowdin.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}

CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 comments on commit 4efe3e7

Please sign in to comment.