diff --git a/act/checkout/action.yaml b/act/checkout/action.yaml index 9e8cfb6..763f732 100644 --- a/act/checkout/action.yaml +++ b/act/checkout/action.yaml @@ -35,5 +35,5 @@ runs: git init --object-format=${{ inputs.git_object_format }} -b main . git remote add origin "${{ inputs.server_url }}/${{ inputs.repository }}.git" export AH="Authorization: Basic $(printf 'x-access-token:${{ inputs.token }}' | base64 | tr -d '\n')" - git --config-env=http.extraheader=AH fetch --depth 1 origin "${{ inputs.sha }}" + git --config-env=http.extraheader=AH fetch --depth 2 origin "${{ inputs.sha }}" git reset --hard FETCH_HEAD