Skip to content

Commit

Permalink
branch update
Browse files Browse the repository at this point in the history
  • Loading branch information
Furrior committed Oct 21, 2023
1 parent 793b2b6 commit 7f1c55e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/auto_translate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,7 @@ jobs:
- name: 'Push Translation'
run: |
git config --local user.email "[email protected]"
git config --local user.name "SS220Manager"
git commit -m "Generate translation file"
git push -u -f origin/translate
git push -u -f origin translate
35 changes: 35 additions & 0 deletions .github/workflows/translate_branch_update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Update translate branch

on:
workflow_dispatch:
push:
branches: ['master']

jobs:
add_translation:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- name: 'Update Branch'
uses: actions/checkout@v4

- name: Create temporary branch
run: |
git branch -f translate_tmp
git checkout translate_tmp
git reset --hard origin/master
- name: Apply existing translation
run: |
git checkout origin/translate -- ./tools/translator/ss220replace.json
./tools/translator/ss220_replacer_linux --prefix=ss220 --root=./../../ --location=./
- name: 'Push Translation'
run: |
git config --local user.email "[email protected]"
git config --local user.name "SS220Manager"
git commit -m "Generate translation file"
git push -u -f origin translate

0 comments on commit 7f1c55e

Please sign in to comment.