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" .