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