Crowdin Action #275
This file contains hidden or 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
name: Crowdin Action | |
on: | |
push: # instantly push new source strings to Crowdin for translators | |
branches: [ master ] | |
paths: '**.po' | |
workflow_dispatch: | |
schedule: # check for translations from Crowdin every 12h | |
- cron: '0 */12 * * *' | |
permissions: # added using https://github.com/step-security/secure-repo | |
contents: read | |
jobs: | |
crowdin: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Synchronize with Crowdin | |
uses: crowdin/github-action@590c05e09a29f392b203faf4d6aa8e0cd32c7835 # v2.9.1 | |
with: | |
upload_sources: true | |
upload_translations: true | |
download_translations: true | |
export_only_approved: false | |
localization_branch_name: l10n_crowdin_translations_${{ github.ref_name }} | |
create_pull_request: true | |
pull_request_title: 'New Crowdin translations' | |
pull_request_body: 'New Crowdin pull request with translations' | |
pull_request_base_branch_name: ${{ github.ref_name }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }} | |
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }} |