Skip to content

Commit 7bb66e8

Browse files
hotfix: specify git bot user in create-branch-and-pr
1 parent 729106d commit 7bb66e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/create_new_post_pr.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,13 @@ jobs:
2020
- name: Make draft item and get branch name
2121
id: get_name
2222
run: |
23+
git config --global user.name 'github-actions[bot]'
24+
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
25+
2326
branch_name=$(echo "${{ github.event.inputs.name }}" | tr '[:upper:]' '[:lower:]' | tr ' ' '-')
2427
2528
# Create an item in drafts directory
2629
touch drafts/${branch_name}
27-
git add drafts
28-
git commit -m "create PR from branch ${branch_name}"
2930
3031
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
3132

0 commit comments

Comments
 (0)