Skip to content

Run Localization

Run Localization #21

Workflow file for this run

on: [workflow_dispatch]
name: Run Localization
jobs:
generate_zone_config:
name: Run Localization
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: true
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 19.6.0
- name: Install dependencies
run: npm install
- name: Run localization
working-directory: ./.github/workflows/utility
run: npx pnpm inlang machine translate --force
- name: Add Commit Push
uses: devops-infra/action-commit-push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
add_timestamp: false
commit_prefix: "[AUTO]"
commit_message: "localization Update"
force: false
target_branch: update/localization
- name: Create A PR
uses: devops-infra/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: update/localization
target_branch: main
title: localization Update
body: "**Automated pull request**"
old_string: "**THIS IS AN AUTOMATED UPDATE OF LOCALIZATION**"
new_string: "** Automatic pull request**"
get_diff: true
ignore_users: "dependabot"