workflows: fix committer for nameless users

master
Jonathan Chang 2020-04-26 11:08:13 +10:00
parent 8ad10d6002
commit 87c4c1137d
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ jobs:
username: context.actor
})
const email = (user.data.email || user.data.id + "+" + user.data.login + "@users.noreply.github.com")
console.log("Dispatched by " + user.data.name + " <" + email + ">")
const name = (user.data.name || user.data.login)
console.log("Dispatched by " + name + " <" + email + ">")
core.setOutput("name", user.data.name)
core.setOutput("email", email)
- name: Post comment once started