Update git/checkout/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 14:58:12 +00:00
parent 9ed954ffe1
commit 29f18e6db6

View File

@ -12,5 +12,5 @@ runs:
options: -v ${{ github.workspace }}:/root options: -v ${{ github.workspace }}:/root
run: | 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" URL="https://${{ github.token }}@$HOST/${{ github.repository }}.git"
git clone -b "$GITHUB_REF_NAME" "$URL" . git clone -b "${{ github.ref_name }}" "$URL" .