Skip to content

Commit

Permalink
Automatically add extracted strings to main instead of PR (#2315)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmmarslender authored Mar 28, 2024
1 parent caf02e4 commit f0e7d10
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/extract-strings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 <[email protected]>"
author: "ChiaAutomation <[email protected]>"
- name: Commit changes back to the repo
run: |
git add '**/messages.po'
git commit -m "Extract latest strings for translation"
git push origin main

0 comments on commit f0e7d10

Please sign in to comment.