Translate #40
Workflow file for this run
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: Translate | |
on: | |
workflow_dispatch: | |
# push: | |
# paths: | |
# - "resources/strings/strings.xml" | |
# - "translate.py" | |
# - "resources-*/strings/corrections.xml" | |
jobs: | |
translate: | |
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: | |
- uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/[email protected] | |
- run: | | |
pip install beautifulsoup4 | |
pip install deep-translator | |
pip install lxml | |
- run: python translate.py | |
# Commit all changed files back to the repository | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
push_options: '--force' |