actions/git/checkout/action.yaml

17 lines
486 B
YAML

name: Git Checkout
desciption: Checkout repository using alpite/git
runs:
using: composite
container: alpine/git
steps:
- name: Checkout repository
uses: addnab/docker-run-action@v3
with:
image: alpine/git:latest
options: -v $GITHUB_WORKSPACE:/root
run: |
HOST=$(echo "$GITHUB_SERVER_URL" | sed 's%https://%%')
URL="https://$GITHUB_TOKEN@$HOST/$GITHUB_REPOSITORY.git"
git clone -b "$GITHUB_REF_NAME" "$URL" .