I'm using this action like this (this works splendidly):
- name: Check Out Code
uses: actions/checkout@v2
with:
ref: ${{ env.BRANCH }}
fetch-depth: 0
I only need to get the entire commit history for just that one ${{ env.BRANCH }}. But using fetch-depth: 0 gets all commit history for all branches and tags, which is unnecessary in my case. Is there a way to get the entire commit history for just the branch referenced in the ref?