Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
chrabyrd committed Apr 18, 2024
1 parent f8d67c4 commit 2f67af8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/check-base-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,4 @@ jobs:
- name: Check base branch
run: |
git fetch origin
BASE_BRANCH=$(git rev-parse origin/${{ github.event.pull_request.base.ref }})
CURRENT_BRANCH=$(git rev-parse HEAD)
if ! git merge-base --is-ancestor $BASE_BRANCH $CURRENT_BRANCH; then
echo "ERROR: The branch is not based off the latest version of the target branch."
exit 1
fi
git merge-base --is-ancestor ${GITHUB_HEAD_REF} ${GITHUB_BASE_REF} || (echo "ERROR: The branch is not based off the latest version of the target branch." && exit 1)

0 comments on commit 2f67af8

Please sign in to comment.