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
container: alpine/git
steps:
- run: |
HOST=$(echo "$GITHUB_SERVER_URL" | sed 's%https://%%')
URL="https://$GITHUB_TOKEN@$HOST/$GITHUB_REPOSITORY.git"
git clone -b "$GITHUB_REF_NAME" "$URL" .
- name: Checkout repository
uses: docker://alpine/git:latest
with:
args: |
-v $GITHUB_WORKSPACE:/root
git clone -b "$GITHUB_REF_NAME" "https://$GITHUB_TOKEN@$(echo "$GITHUB_SERVER_URL" | sed 's%https://%%')/$GITHUB_REPOSITORY.git" .