File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -22,14 +22,18 @@ runs:
22
22
- name : Clone repository
23
23
run : |
24
24
if [ -z "${{ inputs.access-token }}" ]; then
25
- git clone https://github.com/${{ inputs.owner }}/${{ inputs.repository }}.git
26
25
if [ -z "${{ inputs.branch }}" ]; then
27
26
git clone https://github.com/${{ inputs.owner }}/${{ inputs.repository }}.git
28
27
else
29
- git clone https://${{ inputs.access-token }}@ github.com/${{ inputs.owner }}/${{ inputs.repository }}.git -b ${{ inputs.branch }}
28
+ git clone https://github.com/${{ inputs.owner }}/${{ inputs.repository }}.git -b ${{ inputs.branch }}
30
29
fi
31
30
else
32
31
git clone https://${{ inputs.access-token }}@github.com/${{ inputs.owner }}/${{ inputs.repository }}.git
32
+ if [ -z "${{ inputs.branch }}" ]; then
33
+ git clone https://${{ inputs.access-token }}@github.com/${{ inputs.owner }}/${{ inputs.repository }}.git
34
+ else
35
+ git clone https://${{ inputs.access-token }}@github.com/${{ inputs.owner }}/${{ inputs.repository }}.git -b ${{ inputs.branch }}
36
+ fi
33
37
fi
34
38
35
39
if [ -d "${{ inputs.repository }}" ]; then
You can’t perform that action at this time.
0 commit comments