Skip to content

Commit 8a4890b

Browse files
committed
Always construct bot email from id and login
1 parent 5f76599 commit 8a4890b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

action.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,10 @@ runs:
208208
-H "Accept: application/vnd.github+json" \
209209
-H "X-GitHub-Api-Version: 2022-11-28" \
210210
"/apps/$BOT_LOGIN" \
211-
-q "pick(.name, .email, .id)")
211+
-q "pick(.name, .id)")
212212
USER_NAME=$(echo "$BOT" | jq -r ".name")
213213
echo "::notice::$BOT_LOGIN is named $USER_NAME"
214-
USER_EMAIL=$(echo "$BOT" | jq -r ".email")
215-
if [[ "$USER_EMAIL" = "null" ]]
216-
then
217-
USER_EMAIL="[email protected]"
218-
fi
214+
USER_EMAIL="[email protected]"
219215
echo "::notice::$BOT_LOGIN uses the email $USER_EMAIL"
220216
else
221217
# If nothing works fall back to last commit author.

0 commit comments

Comments
 (0)