Update git/checkout/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 14:42:14 +00:00
parent 18afd2258e
commit 5ce5938e6a

View File

@ -5,7 +5,9 @@ runs:
using: composite using: composite
container: alpine/git container: alpine/git
steps: steps:
- run: | - name: Checkout repository
HOST=$(echo "$GITHUB_SERVER_URL" | sed 's%https://%%') uses: docker://alpine/git:latest
URL="https://$GITHUB_TOKEN@$HOST/$GITHUB_REPOSITORY.git" with:
git clone -b "$GITHUB_REF_NAME" "$URL" . args: |
-v $GITHUB_WORKSPACE:/root
git clone -b "$GITHUB_REF_NAME" "https://$GITHUB_TOKEN@$(echo "$GITHUB_SERVER_URL" | sed 's%https://%%')/$GITHUB_REPOSITORY.git" .