Skip to content

Commit ec9b1a9

Browse files
committed
checkout: if unset, set git user and email
github-actions[bot] github-actions[bot]@users.noreply.github.com Signed-off-by: Jorge Marques <jorge.marques@analog.com>
1 parent 4e8e4bc commit ec9b1a9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ci/actions/checkout/action.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,13 @@ runs:
102102
git checkout -b trunk
103103
fi
104104
105+
if [[ -z "$(git config user.name)" ]]; then
106+
git config user.name "github-actions[bot]"
107+
fi
108+
if [[ -z "$(git config user.email)" ]]; then
109+
git config user.email "github-actions[bot]@users.noreply.github.com"
110+
fi
111+
105112
- name: Checkout
106113
shell: bash
107114
run: |

0 commit comments

Comments
 (0)