Update git/checkout/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 14:55:05 +00:00
parent b4b983fe8f
commit 1e9d009361

View File

@ -6,6 +6,11 @@ runs:
container: alpine/git
steps:
- name: Checkout repository
uses: docker://alpine/git:latest
uses: addnab/docker-run-action@v3
with:
args: clone "https://$GITHUB_TOKEN@$(echo \"$GITHUB_SERVER_URL\" | sed \'s%https://%%\')/$GITHUB_REPOSITORY.git" .
image: alpine/git:latest
options: -v $GITHUB_WORKSPACE:/root
run: |
HOST=$(echo "$GITHUB_SERVER_URL" | sed 's%https://%%')
URL="https://$GITHUB_TOKEN@$HOST/$GITHUB_REPOSITORY.git"
git clone -b "$GITHUB_REF_NAME" "$URL" .