This commit is contained in:
paniy
2025-01-15 23:34:14 +08:00
parent aa857d380e
commit 2badb57614
3 changed files with 89 additions and 57 deletions
+15 -1
View File
@@ -9,12 +9,22 @@ on:
- 'translate.py'
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-translations:
runs-on: ubuntu-latest
steps:
- name: Check running workflows
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
- name: Restore translation cache
@@ -70,7 +80,7 @@ jobs:
- name: Save translation cache
if: always()
uses: actions/cache/save@v3
uses: actions/cache@v3
with:
path: po/cache_*.json
key: ${{ runner.os }}-translations-${{ hashFiles('po/*.po') }}
@@ -88,6 +98,10 @@ jobs:
echo "$TIMESTAMP" > languages/${lang}/LC_MESSAGES/version
done
- name: Pull changes
run: |
git pull origin main --rebase
- name: Commit changes
run: |
git config --local user.email "action@github.com"