Skip to content

Commit

Permalink
Update upstream-sync.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
XueMoMo authored Jun 18, 2021
1 parent 048664b commit 6bafbbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upstream-sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ git remote add upstream "${UPSTREAM_REPO}"

# check latest commit hashes for a match, exit if nothing to sync
git fetch ${INPUT_GIT_FETCH_ARGS} upstream "${INPUT_UPSTREAM_BRANCH}"
DIFF=$(git log "${INPUT_TARGET_BRANCH}..upstream/"${INPUT_UPSTREAM_BRANCH}" --oneline)
DIFF=$(git log -1 "${INPUT_TARGET_BRANCH}..upstream/${INPUT_UPSTREAM_BRANCH}" --oneline)

if [ "${DIFF}" = "" ]; then
echo "::set-output name=has_new_commits::false"
Expand Down

0 comments on commit 6bafbbf

Please sign in to comment.