From f0e7d1084c5a02d4b97d9e36f6afe1a1b3b369ac Mon Sep 17 00:00:00 2001 From: Chris Marslender Date: Thu, 28 Mar 2024 13:24:11 -0500 Subject: [PATCH] Automatically add extracted strings to main instead of PR (#2315) --- .github/workflows/extract-strings.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/extract-strings.yml b/.github/workflows/extract-strings.yml index ffcb55d1bb..b43ff2ed34 100644 --- a/.github/workflows/extract-strings.yml +++ b/.github/workflows/extract-strings.yml @@ -24,6 +24,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.REPO_COMMIT }} - name: Setup Node 18.x uses: actions/setup-node@v3 @@ -41,17 +42,8 @@ jobs: npm install npm run locale:extract - - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 - with: - base: main - body: "Extracted latest strings from source" - branch: string-updates - commit-message: "Extracted latest strings from source" - delete-branch: true - reviewers: "emlowe" - assignees: "emlowe" - title: "Latest Strings" - token: "${{ secrets.GITHUB_TOKEN }}" - committer: "ChiaAutomation " - author: "ChiaAutomation " + - name: Commit changes back to the repo + run: | + git add '**/messages.po' + git commit -m "Extract latest strings for translation" + git push origin main