Skip to content

Commit 04a2c60

Browse files
committed
configure git in GH action
1 parent d35efd8 commit 04a2c60

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ jobs:
3131
- name: Unset header
3232
# checkout@v2 adds a header that makes branch protection report errors
3333
# because the Github action bot is not a collaborator on the repo
34-
run: git config --local --unset http.https://github.com/.extraheader
34+
run: |
35+
git config --local --unset http.https://github.com/.extraheader
36+
git config --global init.defaultBranch main
37+
git config --global user.email "[email protected]"
38+
git config --global user.name "Dummy User"
3539
3640
- name: Fetch tags
3741
run: git fetch --prune --unshallow

0 commit comments

Comments
 (0)