Skip to content

Commit

Permalink
Testing GH action for transations
Browse files Browse the repository at this point in the history
  • Loading branch information
sanzeeb3 committed Nov 5, 2024
1 parent 33ae27d commit fb46c02
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/gpt-po.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,22 @@ jobs:
- name: Run WP-CLI Commands
run: |
wp i18n make-pot languages
wp i18n make-pot . languages/aawp-.pot --exclude=assets/block/src
wp i18n make-php languages
wp i18n make-json languages
- name: Commit and Push Changes
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
git add languages # Stage changes only in the languages directory
if [ -n "$(git status --porcelain)" ]; then
git commit -m "Update translation files with new translations"
git push
else
echo "No changes to commit"
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fb46c02

Please sign in to comment.