-
Notifications
You must be signed in to change notification settings - Fork 219
32 lines (29 loc) · 1008 Bytes
/
tx-pull.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
on:
workflow_dispatch:
schedule:
# every day at 8:15 PM UTC
- cron: "15 20 * * *"
name: "Scheduled Transifex Update"
jobs:
pull-translations-from-transifex:
name: pull-translations-from-transifex
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: 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 --force --all
- name: Create PR if necessary
uses: peter-evans/create-pull-request@v6.0.1
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 <infrastructure@openmrs.org>"
token: ${{ secrets.GITHUB_TOKEN }}