New translations tips-and-tricks-item-name.cfg (Chinese Simplified) #641
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |