Merge pull request #150 from Nacosia/fix-auto_formatting_translation #2
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: Format Translation | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- newartwork | |
paths: | |
- 'Screens/MiniGame/KinkyDungeon/*' | |
jobs: | |
format-translation: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: 🚀 Run format-translation script | |
run: python .github/scripts/format-translation-script.py Screens/MiniGame/KinkyDungeon/Text_KinkyDungeon.csv | |
- name: 📝 Commit changes | |
id: check_changes | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "format-translation-action" | |
git add . | |
git diff-index --quiet HEAD || git commit -m "Format translation files" | |
git push |