feat: add GitHub workflow to pull translations from transifex #3
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 source and German translation to Transifex" | |
on: | |
push: | |
branches: | |
# TODO: run on master once https://github.com/owncloud/ios-sdk/pull/112 is merged | |
# - master | |
- feature/xcstrings-transition-tx-sync | |
permissions: {} | |
jobs: | |
push-translations: | |
runs-on: ubuntu-latest | |
env: | |
TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: l10n-push-source | |
uses: transifex/cli-action@v2 | |
with: | |
token: ${{ secrets.TX_TOKEN }} | |
args: push -s --skip | |
- name: work around https://github.com/transifex/cli-action/pull/5 | |
run: rm -rf /tmp/tx/tx | |
- name: l10n-push-de | |
uses: transifex/cli-action@v2 | |
with: | |
token: ${{ secrets.TX_TOKEN }} | |
args: push -t -l de --skip |