actions/git/action.yaml

14 lines
441 B
YAML
Raw Normal View History

2023-11-23 20:33:14 -05:00
name: Checkout
desciption: Git clone reposirory
2023-11-23 20:29:56 -05:00
runs:
using: composite
steps:
2023-11-23 20:33:14 -05:00
- name: Creat authorized Git URL
run: echo "URL=$(echo ${{github.server_url}} | sed s%://%://${{github.token}}@% )/${{github.repository}}.git" >> $GITHUB_ENV
- name: Clone repository
uses: docker://gitlab/gitlab-runner:alpine
2023-11-23 20:29:56 -05:00
with:
entrypoint: git
args: clone -b "${{github.ref_name}}" "${{env.URL}}" .