mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-05-08 09:49:51 +00:00
ci: Add action to push translation source to transifex
This commit is contained in:
parent
253dfd897c
commit
3d866cec9a
26
.github/workflows/tx-push.yml
vendored
Normal file
26
.github/workflows/tx-push.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# Push translation source to Transifex
|
||||||
|
name: Transifex Sync
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- locale/*.pot
|
||||||
|
|
||||||
|
env:
|
||||||
|
TX_VERSION: "1.6.10"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
push-source:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Get Transifex Client
|
||||||
|
run: |
|
||||||
|
curl -o- https://raw.githubusercontent.com/transifex/cli/master/install.sh | bash -s -- $TX_VERSION
|
||||||
|
- name: Update & Push Translation Sources
|
||||||
|
env:
|
||||||
|
TX_TOKEN: ${{ secrets.TX_TOKEN }}
|
||||||
|
run: |
|
||||||
|
./tx push -s --use-git-timestamps
|
Loading…
x
Reference in New Issue
Block a user