From c57324f7ad95076c0cda4bece8fed68424906690 Mon Sep 17 00:00:00 2001 From: Joseph Abbey Date: Mon, 13 Nov 2023 23:00:57 +0000 Subject: [PATCH] Create translate.yml --- .github/workflows/translate.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/translate.yml diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml new file mode 100644 index 0000000..c9a4c88 --- /dev/null +++ b/.github/workflows/translate.yml @@ -0,0 +1,30 @@ +name: Translate +on: + push: + paths: + - "resources/strings/strings.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/setup-python@v4.7.1 + + - run: | + pip install beautifulsoup4 + pip install deep-translate + pip install xml + + - run: python translate.py + + # Commit all changed files back to the repository + - uses: stefanzweifel/git-auto-commit-action@v5