I would like to log the git history in a Github Action. But it seems that the Action's environment has a different one:
echo $(git log -5 --oneline)
shell: /bin/bash -e {0}
7c0faa6 Merge c245982a87ef5538d42ab905706faa08f4d67ce9 into 8a939ef1f71eaecac0ae52d625dad3e3c9fa4c16
This is not a git log and none of these hashes matches what I have in my repo.
Why is that?
How to access the commit history from the environment of a Github Action?