actions/git/checkout/action.yaml

14 lines
410 B
YAML
Raw Normal View History

2023-08-06 20:35:23 -04:00
name: Git Checkout
desciption: Checkout repository using alpite/git
runs:
using: composite
2023-08-06 20:41:44 -04:00
container: alpine/git
steps:
2023-08-07 10:42:14 -04:00
- name: Checkout repository
uses: docker://alpine/git:latest
with:
args: |
-v $GITHUB_WORKSPACE:/root
2023-08-07 10:44:18 -04:00
git clone --branch "$GITHUB_REF_NAME" "https://$GITHUB_TOKEN@$(echo "$GITHUB_SERVER_URL" | sed 's%https://%%')/$GITHUB_REPOSITORY.git" .