Update clone/action.yaml
This commit is contained in:
@ -19,8 +19,15 @@ runs:
|
|||||||
- 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: sh
|
entrypoint: git
|
||||||
args: git clone -b "${{github.ref_name}}" "${{env.URL}}" . && git submodule update --init --recursive
|
args: clone -b "${{github.ref_name}}" "${{env.URL}}" .
|
||||||
|
|
||||||
|
- name: Clone submodules
|
||||||
|
uses: docker://alpine/git
|
||||||
|
with:
|
||||||
|
entrypoint: git
|
||||||
|
args: submodule update --init --recursive
|
||||||
|
Reference in New Issue
Block a user