We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9125e4d commit 1f30bd2Copy full SHA for 1f30bd2
diff-sha.sh
@@ -52,10 +52,13 @@ if [[ -z $GITHUB_BASE_REF ]]; then
52
CURRENT_BRANCH=$TARGET_BRANCH
53
54
if [[ -z $INPUT_BASE_SHA ]]; then
55
+ git fetch --no-tags -u --progress --depth=2 temp_changed_files "${CURRENT_BRANCH}":"${CURRENT_BRANCH}" && exit_status=$? || exit_status=$?
56
+
57
if [[ $(git rev-list --count HEAD) -gt 1 ]]; then
58
PREVIOUS_SHA=$(git rev-list --no-merges -n 1 HEAD^1 2>&1) && exit_status=$? || exit_status=$?
59
else
60
PREVIOUS_SHA=$CURRENT_SHA
61
+ echo "Initial commit detected"
62
fi
63
64
PREVIOUS_SHA=$INPUT_BASE_SHA && exit_status=$? || exit_status=$?
0 commit comments