Update clone/action.yaml

This commit is contained in:
Zakary Timson 2023-11-24 16:24:40 +00:00
parent f1be8c6654
commit 53a08ebc12

View File

@ -7,8 +7,6 @@ inputs:
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
secrets:
token: token:
type: string type: string
required: false required: false
@ -19,7 +17,7 @@ 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%://%://${{secrets.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