Scheduled Transifex Update #5
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
on: | |
workflow_dispatch: | |
schedule: | |
# every day at 8 PM UTC | |
- cron: "0 20 * * *" | |
name: "Scheduled Transifex Update" | |
jobs: | |
pull-translations-from-transifex: | |
name: pull-translations-from-transifex | |
runs-on: ubuntu-latest | |
permissions: | |
actions: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Push source file using transifex client | |
uses: transifex/cli-action@v2 | |
with: | |
token: ${{ secrets.TRANSIFEX_TOKEN }} | |
args: pull | |
- name: Create PR if necessary | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
commit-message: "(chore) Update translations from Transifex" | |
title: "(chore) Update translations from Transifex" | |
body: "Automated updates of translations pulled from Transifex" | |
branch: "chore/update-transifex" | |
author: "OpenMRS Bot <[email protected]>" | |
token: ${{ secrets.GITHUB_TOKEN }} |