Skip to content

Commit 6efce25

Browse files
committed
Update action.yml
1 parent 28c8012 commit 6efce25

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,18 @@ runs:
2222
- name: Clone repository
2323
run: |
2424
if [ -z "${{ inputs.access-token }}" ]; then
25-
git clone https://github.com/${{ inputs.owner }}/${{ inputs.repository }}.git
2625
if [ -z "${{ inputs.branch }}" ]; then
2726
git clone https://github.com/${{ inputs.owner }}/${{ inputs.repository }}.git
2827
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 }}
3029
fi
3130
else
3231
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
3337
fi
3438
3539
if [ -d "${{ inputs.repository }}" ]; then

0 commit comments

Comments
 (0)