Skip to content

chore(workflows): update chromaui/action digest to 671728d #979

chore(workflows): update chromaui/action digest to 671728d

chore(workflows): update chromaui/action digest to 671728d #979

Workflow file for this run

name: Crowdin Action
on:
push:
paths:
- 'apps/app/public/locales/en/*.json'
pull_request:
types:
- closed
branches-ignore:
# - dev
- main
- l10n_**
- renovate/*
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
# permissions:
# contents: write
# pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
- name: Remove Jira ticket ID from branch name
id: branchregex
uses: ashley-taylor/regex-property-action@eeec905bf940ec1c65ff777402c57f786368d9bc # v1.4
with:
value: ${{ github.ref_name }}
regex: (IN|PLI)-\d+
flags: gi
replacement: $1-xxx
- name: Sanitize github branch name
id: sanitizebranch
uses: ashley-taylor/regex-property-action@eeec905bf940ec1c65ff777402c57f786368d9bc # v1.4
with:
value: ${{ github.head_ref || github.ref_name}}
regex: '[\\/:*?"<>|>]'
flags: gi
replacement: '_'
- name: Upload to Crowdin
if: github.event_name != 'pull_request' && !startsWith(github.ref_name, 'l10n_')
uses: crowdin/github-action@ecdf564895766b8a6b4b581559b3c6cd955467d1 # v1.12.0
env:
GITHUB_TOKEN: ${{ secrets.GH_ACT_PAT }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
with:
upload_sources: true
upload_translations: false
download_translations: false
localization_branch_name: ${{ steps.branchregex.outputs.value }}
create_pull_request: true
pull_request_title: 'chore(i18n): Updated translations from Crowdin'
pull_request_labels: "translations, kodiak: merge.method = 'squash', automerge"
pull_request_base_branch_name: ${{ github.ref_name }}
crowdin_branch_name: ${{ steps.sanitizebranch.outputs.value }}
- name: Delete Crowdin Branch
if: github.event_name == 'pull_request'
uses: crowdin/github-action@ecdf564895766b8a6b4b581559b3c6cd955467d1 # v1.12.0
env:
GITHUB_TOKEN: ${{ secrets.GH_ACT_PAT }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
with:
upload_sources: false
upload_translations: false
download_translations: false
create_pull_request: false
command: branch delete
command_args: ${{ steps.sanitizebranch.outputs.value }}