File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,19 @@ jobs:
32
32
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
33
33
run : |
34
34
cd numpy.org
35
- ../automations/scripts/create_branch_for_language.sh numpy main l10n_main ${{ github.event.inputs.language_code }}
35
+ branch_name=$(../automations/scripts/create_branch_for_language.sh numpy main l10n_main ${{ github.event.inputs.language_code }})
36
+ echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV
36
37
working-directory : ./numpy.org
37
38
38
- - name : Create Pull Request
39
- if : env.CONTENT_CHANGED == 'true'
40
- env :
41
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
- run :
43
- gh pr create --base main --head ${{ env.BRANCH_NAME }} --title "Update translations for X" --body "Body goes here."
44
- working-directory : ./numpy.org
39
+ - name : Create Pull Request
40
+ env :
41
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ run : |
43
+ language_name=$(../automations/scripts/get_language_name.sh ${{ github.event.inputs.language_code }})
44
+ gh pr create --base main --head ${{ env.BRANCH_NAME }} --title "Update translations for $language_name" \
45
+ --body "This PR to update translations for $language_name was generated by the GitHub workflow, \
46
+ `auto-translations-pr.yml` and includes all commits from this repo's Crowdin branch for the language \
47
+ of interest. A final check of the rendered docs is needed to identify if there are any formatting \
48
+ errors due to incorrect string segmentation by Crowdin. If there are such formatting errors, they \
49
+ should be fixed directly on this branch, not through Crowdin.")
50
+ working-directory : ./numpy.org
You can’t perform that action at this time.
0 commit comments