actions/clone/action.yaml

15 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
2023-11-23 20:34:22 -05:00
shell: sh
2023-11-23 20:33:14 -05:00
- name: Clone repository
2023-11-23 22:05:15 -05:00
uses: docker://alpine/git
2023-11-23 20:29:56 -05:00
with:
entrypoint: git
args: clone -b "${{github.ref_name}}" "${{env.URL}}" .