diff --git a/.github/workflows/check-base-branch.yml b/.github/workflows/check-base-branch.yml index e9fc636..0164668 100644 --- a/.github/workflows/check-base-branch.yml +++ b/.github/workflows/check-base-branch.yml @@ -18,7 +18,9 @@ jobs: git fetch origin MERGE_BRANCH=${{ github.event.pull_request.head.ref }} - COMMITS_BEHIND=$(git log --oneline ^HEAD origin/$MERGE_BRANCH) + COMMITS_BEHIND=$(git log --oneline origin/$MERGE_BRANCH ^HEAD) + + echo $MERGE_BRANCH if [ -n "$COMMITS_BEHIND" ]; then echo "Your branch is behind the target branch. The following commits are missing:"