Skip to content

Commit

Permalink
Merge branch 'dev' into l10n_dev
Browse files Browse the repository at this point in the history
  • Loading branch information
kodiakhq[bot] authored Sep 30, 2023
2 parents c05b523 + ee49ae7 commit e8bae21
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ jobs:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
CI_USE_HUSKY: 'true'
steps:
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@82a020f1f7f605c65dd2449b392a52c3fcfef7ef # v6
with:
gpg_private_key: ${{ secrets.BOT_GPG_KEY }}
git_user_signingkey: true
git_config_global: true
git_commit_gpgsign: true
git_committer_name: 'InReach [bot]'

- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4

Expand Down Expand Up @@ -56,12 +66,34 @@ jobs:
upload_translations: false
download_translations: ${{ github.ref_name == 'dev' }}
localization_branch_name: ${{ format('l10n_{0}',steps.branchregex.outputs.value) }}
create_pull_request: true
create_pull_request: false
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: Format json files
if: github.event_name != 'pull_request' && !startsWith(github.ref_name, 'l10n_')
uses: creyD/[email protected]
with:
prettier_options: --write ./apps/app/public/locales/**/*.json
dry: true

- name: Commit files
if: github.event_name != 'pull_request' && !startsWith(github.ref_name, 'l10n_')
uses: peter-evans/create-pull-request@v5
with:
commit-message: Updated translations from Crowdin
committer: 'InReach [bot] <[email protected]>'
author: 'InReach [bot] <[email protected]>'
branch: ${{ format('l10n_{0}',steps.branchregex.outputs.value) }}
title: 'chore(i18n): Updated translations from Crowdin'
labels: |
translations
"kodiak: merge.method = 'squash'"
automerge
delete-branch: true

- name: Delete Crowdin Branch
if: github.event_name == 'pull_request'
uses: crowdin/github-action@6a189cf93a647dc1f4214eb10447661de26b577a # v1.13.1
Expand Down

0 comments on commit e8bae21

Please sign in to comment.