-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1515 from ikedas/submit-pr-for-translation by ikedas
Adding GH workflow to submit the PR for translation
- Loading branch information
Showing
3 changed files
with
39 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Configuration for Automated release notes. | ||
|
||
changelog: | ||
exclude: | ||
labels: | ||
- ignore-for-release | ||
categories: | ||
- title: What's Changed | ||
labels: | ||
- "*" | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
on: | ||
push: | ||
branches: | ||
- translation | ||
paths: | ||
- 'po/**' | ||
|
||
env: | ||
GH_PR_TITLE: Update translation | ||
GH_PR_BODY: This pull request was automatically submitted. | ||
GH_PR_LABEL: translation,on going,ignore-for-release | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
jobs: | ||
submit-pr-for-translation: | ||
if: github.repository_owner == 'sympa-community' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Submit PR to update translation | ||
run: > | ||
gh pr create -H $GITHUB_REPOSITORY_OWNER:$GITHUB_REF_NAME | ||
-t "$GH_PR_TITLE" -b "$GH_PR_BODY" -l "$GH_PR_LABEL" | ||
|| true |