Github actions git log
only output one line
#26928
-
github actions
I try set ‘runs-on’ is macos , the result are same. Only one Line
but on my PC I got many outoup:
So why , how to get all output of git commond? |
Beta Was this translation helpful? Give feedback.
Answered by
weide-zhou
May 27, 2020
Replies: 1 comment
-
Hi @tomgarden, This is due to ‘actions/checkout’ will fetch history with depth 1 by default.
Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @tomgarden,
This is due to ‘actions/checkout’ will fetch history with depth 1 by default.
You can add ‘fetch-depth: 0’ to actions/checkout to get all history. Code sample as below:
Thanks