This commit is contained in:
parent
5475578981
commit
769852640a
@ -1,5 +1,7 @@
|
||||
name: "Shell Checkout"
|
||||
description: "Checkout a repo using shell"
|
||||
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
@ -9,8 +11,10 @@ runs:
|
||||
mkdir -p /tmp/newdir && cd /tmp/newdir
|
||||
git init
|
||||
git remote add origin "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY"
|
||||
basicauth=$(echo -n "x-access-token:${{ secrets.GITHUB_TOKEN }}" | base64)
|
||||
basicauth=$(echo -n "x-access-token:${token}" | base64)
|
||||
git config --local http.$GITHUB_SERVER_URL.extraheader "AUTHORIZATION: basic ${basicauth}"
|
||||
GIT_TRACE=1 GIT_CURL_VERBOSE=1 git fetch origin "$GITHUB_REF"
|
||||
git checkout "$GITHUB_REF_NAME"
|
||||
shell: bash
|
||||
env:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user