Update clone/action.yaml

This commit is contained in:
2025-06-30 13:20:22 -04:00
parent 7191743a3f
commit b36e73b788

View File

@ -1,26 +1,26 @@
name: Checkout name: Checkout
desciption: Git clone reposirory desciption: Git clone reposirory
inputs: inputs:
url: url:
type: string type: string
required: false required: false
description: Repository URL that will be cloned description: Repository URL that will be cloned
default: ${{github.server_url}}/${{github.repository}}.git default: ${{github.server_url}}/${{github.repository}}.git
token: token:
type: string type: string
required: false required: false
description: Authentication token description: Authentication token
default: ${{github.token}} default: ${{github.token}}
runs: runs:
using: composite using: composite
steps: steps:
- name: Creat authorized Git URL - name: Creat authorized Git URL
run: echo "URL=$(echo ${{inputs.url}} | sed s%://%://${{inputs.token}}@% )" >> $GITHUB_ENV run: echo "URL=$(echo ${{inputs.url}} | sed s%://%://${{inputs.token}}@% )" >> $GITHUB_ENV
shell: sh shell: sh
- name: Clone repository - name: Clone repository
uses: docker://alpine/git uses: docker://alpine/git
with: with:
entrypoint: git entrypoint: bash
args: clone -b "${{github.ref_name}}" "${{env.URL}}" . args: git clone -b "${{github.ref_name}}" "${{env.URL}}" . && git submodule update --init --recursive