Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Add warning to use checkout with fetch-depth #396

Merged
merged 3 commits into from
Dec 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SHA1SUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
48ad4d9f3dfd0dd194804c8b7207f03cdcc7e94f codecov
4407b6151fd9a65b5e25ca9cfe026018f2d0a042 codecov
2 changes: 1 addition & 1 deletion SHA256SUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4792a0946df31cd69770156f3172f9ca1c3c318c5c9ab8bb5846eed2987cf77e codecov
c8268e963fc51044d8508a7468671e7ea76288c93fb4a2b701c8a7748bcc725b codecov
2 changes: 1 addition & 1 deletion SHA512SUM
Original file line number Diff line number Diff line change
@@ -1 +1 @@
f665ab465163bbc54a86b1e46b7cdbdaaba31044f09570ed74891666e53a810fb732dbaaca3c414609f30be6c284a1d9ec017def43ea171b550d3c3eeb3d2c41 codecov
556ab0b5e63683a1083941282f43d9d7e08273385f750e19b5623047e95aa159564926f3a1de85addfe3af07bccb2f065d0eefad65b1b6ef7cec1a8921913e59 codecov
10 changes: 7 additions & 3 deletions codecov
Original file line number Diff line number Diff line change
Expand Up @@ -474,20 +474,20 @@ say "
# git/hg
if [ -x "$(command -v git)" ];
then
say " $(git --version) found"
say "$b==>$x $(git --version) found"
else
say "$y==>$x git not installed, testing for mercurial"
if [ -x "$(command -v hg)" ];
then
say " $(hg --version) found"
say "$b==>$x $(hg --version) found"
else
say "$r==>$x git nor mercurial are installed. Uploader may fail or have unintended consequences"
fi
fi
# curl
if [ -x "$(command -v curl)" ];
then
say " $(curl --version) found"
say "$b==>$x $(curl --version)"
else
say "$r==>$x curl not installed. Exiting."
exit ${exit_with};
Expand Down Expand Up @@ -837,6 +837,7 @@ then
slug="${GITHUB_REPOSITORY}"
build="${GITHUB_RUN_ID}"
build_url=$(urlencode "http://github.com/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}")
job="${GITHUB_WORKFLOW}"

# actions/checkout runs in detached HEAD
mc=
Expand All @@ -849,6 +850,9 @@ then
mc=$(echo "$mc" | cut -d' ' -f2)
say " Fixing merge commit SHA $commit -> $mc"
commit=$mc
elif [[ "$mc" = "" ]];
then
say "$r-> Issue detecting commit SHA. Please run actions/checkout with fetch-depth > 1 or set to 0$x"
fi

elif [ "$SYSTEM_TEAMFOUNDATIONSERVERURI" != "" ];
Expand Down