mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-31 04:02:57 +03:00
maint: add auto-sync of pot & hints to transifex
This commit is contained in:
parent
e6ee031fc0
commit
3b5b58fb75
32
.github/workflows/transifex.yml
vendored
Normal file
32
.github/workflows/transifex.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
name: Transifex
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
transifex-upload:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Install gettext & po4a
|
||||
run: sudo apt-get install -y gettext po4a
|
||||
|
||||
- name: Install modern Transifex client
|
||||
run: |
|
||||
mkdir -p $HOME/.local/bin && cd $HOME/.local/bin
|
||||
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash
|
||||
echo "${HOME}/.local/bin" >> $GITHUB_PATH
|
||||
|
||||
- run: ./maint/utils/sync-transifex/po-to-transifex.py
|
||||
env:
|
||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
||||
|
||||
- run: ./maint/utils/sync-transifex/hints-to-transifex.py
|
||||
env:
|
||||
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
Loading…
x
Reference in New Issue
Block a user