Add git/checkout.yaml
This commit is contained in:
parent
2b573227fa
commit
a7a1881c43
10
git/checkout.yaml
Normal file
10
git/checkout.yaml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
name: Git Checkout
|
||||||
|
desciption: Checkout repository using alpite/git
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: composite
|
||||||
|
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" .
|
Loading…
Reference in New Issue
Block a user