Skip to content

Commit 2d25621

Browse files
committed
Use git cli to get branch name instead of script output
1 parent 765e459 commit 2d25621

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/auto-translations-pr.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ jobs:
3434
run: |
3535
git config --global user.email "[email protected]"
3636
git config --global user.name "GitHub Actions"
37-
branch_name=$(../automations/scripts/create_branch_for_language.sh origin main l10n_main ${{ github.event.inputs.language_code }})
37+
../automations/scripts/create_branch_for_language.sh origin main l10n_main ${{ github.event.inputs.language_code }}
38+
branch_name=$(git rev-parse --abbrev-ref HEAD)
3839
echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV
3940
working-directory: ./numpy.org
4041

0 commit comments

Comments
 (0)