From a1da4135f6bc4742cdebea663bd48c6eab8dc232 Mon Sep 17 00:00:00 2001 From: Hannah Casey <61227037+hanaCasey@users.noreply.github.com> Date: Fri, 9 Jan 2026 11:36:52 +0100 Subject: [PATCH] fix: restore sync-translations workflow --- .github/workflows/sync-translations.yml | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/sync-translations.yml b/.github/workflows/sync-translations.yml index 4f27998..ad55e41 100644 --- a/.github/workflows/sync-translations.yml +++ b/.github/workflows/sync-translations.yml @@ -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 @@ -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