From 5ce5938e6a47f72d18eaeba1275eb614352b7e98 Mon Sep 17 00:00:00 2001 From: Zakary Timson Date: Mon, 7 Aug 2023 14:42:14 +0000 Subject: [PATCH] Update git/checkout/action.yaml --- git/checkout/action.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/git/checkout/action.yaml b/git/checkout/action.yaml index b33d3ce..e3c5898 100644 --- a/git/checkout/action.yaml +++ b/git/checkout/action.yaml @@ -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" .