Skip to content

Github actions git log only output one line #26928

Answered by weide-zhou
TomGarden asked this question in Actions
Discussion options

You must be logged in to vote

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:

    - uses: actions/checkout@v2
      with:
        ref: master
        fetch-depth: 0

Thanks

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants