Skip to content

Update from Crowdin #21

Update from Crowdin

Update from Crowdin #21

Workflow file for this run

name: Update Crowdin strings bi-directionally
run-name: Update from Crowdin
on:
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-from-crowdin:
name: Update strings from Crowdin
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
ref: "main"
- name: Set environment variables
id: set-secrets
run: |
echo "CROWDIN_PROJECT_ID=${{ secrets.CROWIN_PROJECT_ID }}" >> $GITHUB_ENV
echo "CROWDIN_API_TOKEN=${{ secrets.CROWDIN_TOKEN_THING }}" >> $GITHUB_ENV
- name: Grab strings from Crowdin
uses: crowdin/[email protected]
with: # this was pain --KTrain
upload_sources: true
download_translations: true
localization_branch_name: auto-i18n-branch
create_pull_request: true
pull_request_title: (Crowdin Action) New translation strings
pull_request_body: New translated strings are now available!
pull_request_base_branch_name: "main"
github_user_name: Crowdin Bot (Actions)
github_user_email: [email protected]
- name: Debug - check directory
run: ls