Skip to content

Commit d522cfa

Browse files
committed
Replace create-pull-request action with commit and push changes for translations update
1 parent 500b1e2 commit d522cfa

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/sync.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,10 @@ jobs:
4646
# Format .po files
4747
find . -name "*.po" -exec msgcat --no-wrap {} -o {} \;
4848
49-
- name: Create Pull Request
50-
uses: peter-evans/create-pull-request@v7
51-
with:
52-
github-token: ${{ secrets.GITHUB_TOKEN }}
53-
commit-message: "Update Farsi translations from Transifex"
54-
title: "Sync translations from Transifex"
55-
body: |
56-
This PR updates Persian (fa) translations from Transifex.
57-
- Pulls reviewed translations only
58-
- Auto-generated by GitHub Actions
59-
branch: update-translations
60-
delete-branch: true
49+
- name: Commit and push changes
50+
run: |
51+
git config --local user.name "GitHub Action's update-translation job"
52+
git config --local user.email github-actions@github.com
53+
git add .
54+
git commit -m "Update Farsi translations from Transifex" || echo "No changes to commit"
55+
git push

0 commit comments

Comments
 (0)