Add git/checkout.yaml

This commit is contained in:
Zakary Timson 2023-08-07 00:35:23 +00:00
parent 2b573227fa
commit a7a1881c43

10
git/checkout.yaml Normal file
View 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" .