Pull translations from Transifex #127
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: "Pull translations from Transifex" | |
on: | |
schedule: | |
- cron: "42 1 * * 6" | |
jobs: | |
pull-translations: | |
if: github.repository == 'cataclysmbnteam/Cataclysm-BN' | |
runs-on: ubuntu-20.04 | |
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@v3 | |
- name: "Get current date" | |
uses: 1466587594/get-current-time@v2 | |
id: current-date | |
with: | |
format: "DD MMMM YYYY" | |
- name: "Pull translations" | |
env: | |
TX_TOKEN: ${{ secrets.TX_TOKEN }} | |
run: tx pull --force | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
with: | |
commit-message: Routine i18n updates on ${{ steps.current-date.outputs.formattedTime }} | |
committer: Coolthulhu (BOT) <[email protected]> | |
author: Coolthulhu (BOT) <[email protected]> | |
token: ${{ secrets.TX_PR_CREATOR }} | |
branch: i18n | |
delete-branch: true | |
base: upload | |
title: Routine i18n updates on ${{ steps.current-date.outputs.formattedTime }} | |
body: "#### Summary\nNone" | |
labels: Translation |