-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically add extracted strings to main instead of PR (#2315)
- Loading branch information
1 parent
caf02e4
commit f0e7d10
Showing
1 changed file
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 <[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 |