Push translation template #571
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: "Push translation template" | |
concurrency: push_transifex | |
on: | |
workflow_dispatch: | |
workflow_run: | |
workflows: ["Nightly Release"] | |
types: | |
- completed | |
jobs: | |
push-template: | |
runs-on: ubuntu-24.04 | |
if: > | |
${{ github.event.workflow_run.event == 'push' && | |
github.event.workflow_run.conclusion == 'success' && | |
github.event.workflow_run.status == 'success' && | |
github.repository == 'cataclysmbnteam/Cataclysm-BN' }} | |
steps: | |
- name: "Install gettext tools" | |
run: sudo apt install gettext | |
- name: "Install Transifex CLI" | |
run: | | |
curl -sL https://github.com/transifex/cli/releases/download/v1.6.7/tx-linux-amd64.tar.gz | sudo tar zxvf - -C /usr/bin tx | |
- name: "Install Python3" | |
run: | | |
sudo apt install python3-pip | |
sudo pip3 install --break-system-packages polib luaparser | |
- name: "Checkout" | |
uses: actions/checkout@v4 | |
- name: "Generate translation template" | |
run: | | |
lang/update_pot.sh | |
- name: "Push translation template to Transifex server" | |
env: | |
TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
run: tx push -s |