Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 13 additions & 8 deletions .github/workflows/sync-translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
persist-credentials: true

- name: Setup Node.js
uses: actions/setup-node@v4
Expand Down Expand Up @@ -55,12 +59,13 @@ jobs:
echo "has_changes=false" >> $GITHUB_OUTPUT
fi

- name: Commit and push changes
- name: Create Pull Request
if: steps.check_changes.outputs.has_changes == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add src/lib/i18n/locales/
git commit -m "chore: sync translations from Google Sheets"
git push

uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: sync translations from Google Sheets"
title: "chore: sync translations from Google Sheets"
body: "Automated translation sync from Google Sheets"
branch: chore/sync-translations
delete-branch: true