@@ -22,32 +22,37 @@ jobs:
22
22
fetch-depth : 0 # Gets full github history.
23
23
# Full history is needed for the scripted interactive rebase
24
24
# which takes place in create_branch_for_language.sh below.
25
+ persist-credentials : false
25
26
26
27
- name : Checkout scientific-python-translations automations
27
28
uses : actions/checkout@v4
28
29
with :
29
30
repository : ' scientific-python-translations/automations'
30
31
path : ' automations'
31
32
ref : ' main'
33
+ persist-credentials : false
32
34
33
35
- name : Create translations branch for language of interest
34
36
env :
35
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38
+ LANG : ${{ github.event.inputs.language_code }}
36
39
run : |
37
40
git config --global user.email "actions@github.com"
38
41
git config --global user.name "GitHub Actions"
39
- ../automations/scripts/create_branch_for_language.sh origin main l10n_main ${{ github.event.inputs.language_code }}
42
+ ../automations/scripts/create_branch_for_language.sh origin main l10n_main "$LANG"
40
43
branch_name=$(git rev-parse --abbrev-ref HEAD)
41
- git push -u origin $branch_name
44
+ git push -u origin " $branch_name"
42
45
echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV
43
46
working-directory : ./numpy.org
44
47
45
48
- name : Create Pull Request
46
49
env :
47
50
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
51
+ BRANCH_NAME : ${{ env.BRANCH_NAME }}
52
+ LANG : ${{ github.event.inputs.language_code }}
48
53
run : |
49
- language_name=$(../automations/scripts/get_language_name.sh ${{ github.event.inputs.language_code }} )
50
- gh pr create --base main --head ${{ env. BRANCH_NAME }} --title "Update translations for $language_name" \
54
+ language_name=$(../automations/scripts/get_language_name.sh "$LANG" )
55
+ gh pr create --base main --head "$ BRANCH_NAME" --title "Update translations for $language_name" \
51
56
--body "This PR to update translations for $language_name was generated by the GitHub workflow, \
52
57
auto-translations-pr.yml and includes all commits from this repo's Crowdin branch for the language \
53
58
of interest. A final check of the rendered docs is needed to identify if there are any formatting \
0 commit comments