修复 build 脚本 #4
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: Generate FTB Quest Translate Keys | |
on: push | |
jobs: | |
generate: | |
runs-on: | |
- ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install python deps | |
run: pip install -r .github/workflows/scripts/requirements.txt | |
- name: Generate FTB Quest Translate Keys | |
run: python .github/workflows/scripts/ftbquest_localization.py | |
- name: Update Translate Keys | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Automated update Translate Keys | |
build: | |
needs: | |
- generate | |
secrets: inherit | |
uses: ./.github/workflows/build.yml |