From 363ed9db57245fa1c7c200601fdbed608dac4334 Mon Sep 17 00:00:00 2001 From: BAK BYEONG JUN Date: Tue, 8 Apr 2025 17:52:21 +0000 Subject: [PATCH] bug fixed --- tasks/git-clone-checkout/task.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tasks/git-clone-checkout/task.yaml b/tasks/git-clone-checkout/task.yaml index f4cc7ff..5b40973 100644 --- a/tasks/git-clone-checkout/task.yaml +++ b/tasks/git-clone-checkout/task.yaml @@ -46,7 +46,7 @@ spec: A workspace containing CA certificates, this will be used by Git to verify the peer with when fetching or pushing over HTTPS. params: - - name: url + - name: repo-url description: Repository URL to clone from. type: string - name: revision @@ -80,7 +80,7 @@ spec: - name: HOME value: "$(params.userHome)" - name: PARAM_URL - value: $(params.url) + value: $(params.repo-url) - name: PARAM_REVISION value: $(params.revision) - name: PARAM_VERBOSE @@ -135,7 +135,7 @@ spec: git config --global --add safe.directory "${WORKSPACE_OUTPUT_PATH}" cd "${WORKSPACE_OUTPUT_PATH}" - git clone "$(params.url)" . + git clone "${PARAM_URL}" . git checkout "${PARAM_REVISION}" RESULT_SHA="$(git rev-parse HEAD)" @@ -146,4 +146,4 @@ spec: RESULT_COMMITTER_DATE="$(git log -1 --pretty=%ct)" printf "%s" "${RESULT_COMMITTER_DATE}" > "$(results.committer-date.path)" printf "%s" "${RESULT_SHA}" > "$(results.commit.path)" - printf "%s" "$(params.url)" > "$(results.url.path)" \ No newline at end of file + printf "%s" "${PARAM_URL}" > "$(results.url.path)" \ No newline at end of file