Skip to content

Commit

Permalink
remove results output from git-clone component
Browse files Browse the repository at this point in the history
  • Loading branch information
ptzianos committed Oct 30, 2024
1 parent 15fccdd commit 6417068
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions components/sources/git/task.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,7 @@ spec:
-submodules="${PARAM_SUBMODULES}" \
-depth="${PARAM_DEPTH}" \
-sparseCheckoutDirectories="${PARAM_SPARSE_CHECKOUT_DIRECTORIES}"
cd "${CHECKOUT_DIR}"
RESULT_SHA="$(git rev-parse HEAD)"
EXIT_CODE="$?"
if [ "${EXIT_CODE}" != 0 ] ; then
exit "${EXIT_CODE}"
fi
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" "${PARAM_URL}" > "$(results.url.path)"

0 comments on commit 6417068

Please sign in to comment.