Skip to content
This repository was archived by the owner on Feb 2, 2024. It is now read-only.

Commit 053499e

Browse files
committed
reference_dir指定時のみ --reference-if-able を指定するようにした
1 parent e2d81de commit 053499e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,14 @@ runs:
6969
DEPTH=--depth=${{ inputs.depth }}
7070
fi
7171
72+
if [ ! -z "${{ inputs.reference_dir }}" ]; then
73+
REFERENCE_IF_ABLE="--reference-if-able=${{ inputs.reference_dir }}"
74+
fi
75+
7276
try_till_success \
7377
/usr/bin/git clone \
7478
$DEPTH \
75-
--reference-if-able=${{ inputs.reference_dir }} \
79+
$REFERENCE_IF_ABLE \
7680
https://${{ inputs.github_actor }}:${{ inputs.github_token }}@github.com/${{ inputs.github_repository }}.git \
7781
${{ inputs.checkout_dir }}
7882

0 commit comments

Comments
 (0)