Skip to content

chore(workflows): update github/codeql-action digest to 04daf01 #1049

chore(workflows): update github/codeql-action digest to 04daf01

chore(workflows): update github/codeql-action digest to 04daf01 #1049

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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
- 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@ce5235f7e587746e03d6f7fe80b10a74ead2b120 # v1.13.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@ce5235f7e587746e03d6f7fe80b10a74ead2b120 # v1.13.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 }}