Skip to content

Pull translations from Transifex #29

Pull translations from Transifex

Pull translations from Transifex #29

name: "Pull translations from Transifex"
on:
workflow_dispatch:
schedule:
- cron: "42 1 * * 6"
jobs:
pull-translations:
# if: github.repository == 'cataclysmbnteam/Cataclysm-BN'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- 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: "Checkout"
uses: actions/checkout@v4
- name: "Get current date"
uses: nanzm/[email protected]
id: get-timestamp
with:
timeZone: 0
format: "YYYY-MM-DD"
# - name: "Pull translations"
# run: tx pull --force
# env:
# TX_TOKEN: ${{ secrets.TX_TOKEN }}
- name: "do some random change"
run: echo Hello, World >> hello.txt
- name: Show Changes
run: |
git status
git diff --numstat
- name: Create Commit
uses: stefanzweifel/git-auto-commit-action@v5
with:
branch: main
commit_message: "feat(i18n): routine i18n updates on ${{ steps.get-timestamp.outputs.time }}"
commit_user_name: "github-actions[bot]"
commit_user_email: "github-actions[bot]@users.noreply.github.com"
commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>"