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
|
2023-11-23 20:34:22 -05:00
|
|
|
shell: sh
|
2023-11-23 20:33:14 -05:00
|
|
|
- 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}}" .
|