Skip to content

Commit 2efcb48

Browse files
committed
fix: don't check empty emails for username matches
1 parent d07c4ab commit 2efcb48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ fi
1919

2020
identification() {
2121
read -r email
22-
if [ -n "$INPUT_USERNAME" ]; then
22+
if [ -n "$INPUT_USERNAME" ] && [ -n "$email" ]; then
2323
if ! username=$( \
2424
curl "https://api.github.com/search/users?q=$email+in:email" \
2525
-H "Accept: application/vnd.github.v3+json" \

0 commit comments

Comments
 (0)