maint: rewrite workflows to get mail notifications upon setting labels #52
This file contains hidden or 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: transifex | |
on: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
transifex-upload: | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- 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/sync-transifex/po-to-transifex.py | |
env: | |
TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
- run: ./maint/sync-transifex/hints-to-transifex.py | |
env: | |
TX_TOKEN: ${{ secrets.TX_TOKEN }} |