let it be git-show friendly
This commit is contained in:
parent
790ca8c2ce
commit
1ab0381b17
1 changed files with 1 additions and 1 deletions
|
|
@ -35,5 +35,5 @@ runs:
|
||||||
git init --object-format=${{ inputs.git_object_format }} -b main .
|
git init --object-format=${{ inputs.git_object_format }} -b main .
|
||||||
git remote add origin "${{ inputs.server_url }}/${{ inputs.repository }}.git"
|
git remote add origin "${{ inputs.server_url }}/${{ inputs.repository }}.git"
|
||||||
export AH="Authorization: Basic $(printf 'x-access-token:${{ inputs.token }}' | base64 | tr -d '\n')"
|
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
|
git reset --hard FETCH_HEAD
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue