Update git/checkout/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 14:57:10 +00:00
parent 994223f01d
commit 9ed954ffe1

View File

@ -11,6 +11,6 @@ runs:
image: alpine/git:latest
options: -v ${{ github.workspace }}:/root
run: |
HOST=$(echo "$GITHUB_SERVER_URL" | sed 's%https://%%')
HOST=$(echo "${{ github.server_url }}" | sed 's%https://%%')
URL="https://$GITHUB_TOKEN@$HOST/$GITHUB_REPOSITORY.git"
git clone -b "$GITHUB_REF_NAME" "$URL" .