@@ -9,50 +9,41 @@ name: "Scheduled Transifex Update"
99jobs :
1010 pull-translations-from-transifex :
1111 name : pull-translations-from-transifex
12+
1213 runs-on : ubuntu-latest
13-
14- # Required permissions for creating and managing PRs
1514 permissions :
1615 contents : write
1716 pull-requests : write
1817
1918 steps :
20- # Step 1: Check out repository
21- - name : Checkout repository
22- uses : actions/checkout@v4
23-
24- # Step 2: Pull translations from Transifex
25- - name : Pull translations from Transifex
19+ - uses : actions/checkout@v4
20+ - name : 🌐 Push source file using transifex client
2621 uses : transifex/cli-action@v2
2722 with :
2823 token : ${{ secrets.TRANSIFEX_TOKEN }}
2924 args : pull --force --all
30-
31- # Step 3: Create PR with translation updates
32- - name : Create PR if necessary
33- id : cpr
25+ - name : 🔄 Create PR if necessary
3426 uses : peter-evans/create-pull-request@v7
3527 with :
36- commit-message : " (chore) Update translations from Transifex"
37- title : " (chore) Update translations from Transifex"
28+ commit-message : ' (chore) Update translations from Transifex'
29+ title : ' (chore) Update translations from Transifex'
3830 body : |
39- Automated updates of translations pulled from Transifex
31+ # OpenMRS Translation Updates
4032
41- This PR was automatically generated by the Scheduled Transifex Update workflow.
42- branch : " chore/update-transifex"
43- author : " OpenMRS Bot <infrastructure@openmrs.org>"
44- token : ${{ secrets.OMRS_BOT_GH_TOKEN }}
33+ This PR contains updates to the translations pulled from Transifex
4534
35+ > This PR was automatically generated and will be automatically merged if checks pass.
36+ branch : ' chore/update-transifex'
37+ author : ' OpenMRS Bot <infrastructure@openmrs.org>'
38+ token : ${{ secrets.OMRS_BOT_GH_TOKEN }}
4639 # Step 4: Auto-approve the PR if created or updated
4740 - name : ✅ Auto approve PR
4841 if : steps.cpr.outputs.pull-request-operation == 'created' || steps.cpr.outputs.pull-request-operation == 'updated'
4942 run : gh pr review --approve "${{ steps.cpr.outputs.pull-request-number }}"
5043 env :
5144 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
52-
53- # Step 5: Auto-merge the PR if created or updated
54- - name : 🔀 Auto merge PR
45+ - name : 🔀 Automerge PR
5546 if : steps.cpr.outputs.pull-request-operation == 'created' || steps.cpr.outputs.pull-request-operation == 'updated'
5647 run : gh pr merge --auto --squash "${{ steps.cpr.outputs.pull-request-number }}"
5748 env :
58- GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49+ GH_TOKEN : ${{ secrets.OMRS_BOT_GH_TOKEN }}
0 commit comments