How to get Github username variable in Azure DevOps build pipeline?
This is not supported by Azure DevOps pipelines yet. Microsoft will provide it soon. Will update this post once they made it available. 

Pretty straight forward way to get last commit user in Bash:
git log -1 --pretty=format:'%an'