Skip to content

New translations mod-setting-description.cfg (Chinese Simplified) #647

New translations mod-setting-description.cfg (Chinese Simplified)

New translations mod-setting-description.cfg (Chinese Simplified) #647

name: Patch crowdin PR
on:
push:
branches:
- l10n_main
jobs:
auto_commit:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Replace ]= in .cfg files
run: |
find locale -type f -name "*.cfg" -exec sed -i 's/]=/]/' {} +
- name: Get changed files
id: changed-files
with:
files: "locale/**/*.cfg"
uses: tj-actions/verify-changed-files@v20
- name: Push changes
if: ${{ steps.changed-files.outputs.files_changed == 'true' }}
run: |
git config --global user.email "actions@github.com"
git config --global user.name "GitHub Actions"
git add .
git commit -m "Auto commit: Replace ]= with ] in .cfg files"
git push origin l10n_main