Skip to content

Commit

Permalink
Merge branch 'auto/translations-source' into auto/crowdin
Browse files Browse the repository at this point in the history
  • Loading branch information
AiroPi authored Dec 6, 2023
2 parents f835ce1 + e0b0577 commit 37b12fa
Show file tree
Hide file tree
Showing 2 changed files with 273 additions and 219 deletions.
16 changes: 3 additions & 13 deletions .github/workflows/generate-pot-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
ref: master
path: master/

- uses: actions/setup-python@v4
with:
Expand All @@ -28,21 +25,14 @@ jobs:
pip install babel
sh ./bin/pot-generation.sh
- uses: actions/checkout@v3
with:
ref: auto/translations-source
path: translations/

- name: setup git
run: |
cd translations
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: commit
run: |
mv -f master/resources/locale/mybot.pot translations/resources/locale/mybot.pot
cd translations
git add ./resources/locale/mybot.pot
git switch -c auto/translations-source
git add ./data/locale/mybot.pot
git commit -m "POT file generated"
git push origin auto/translations-source
git push origin auto/translations-source --force
Loading

0 comments on commit 37b12fa

Please sign in to comment.