Update git/checkout/action.yaml
This commit is contained in:
parent
18afd2258e
commit
5ce5938e6a
@ -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" .
|
||||
|
Loading…
Reference in New Issue
Block a user