Skip to content

Commit

Permalink
Merge branch 'main' into feature/adding_notifiers_blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
PawelPeczek-Roboflow committed Nov 29, 2024
2 parents c2f64a4 + 0bc541c commit a776146
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/check_if_branch_is_mergeable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ jobs:
- name: Check and store mergable state
id: mergeable_check
run: |
if [ -z "${{ github.event.pull_request.head.sha }}" ]; then
echo "Merging to main";
exit 0;
fi
echo "Check if main is ancestor of ${{ github.event.pull_request.head.sha }} (branch HEAD)";
if $(git merge-base --is-ancestor ${{ env.main_sha }} ${{ github.event.pull_request.head.sha }}); then
echo "Branch is mergeable";
Expand Down

0 comments on commit a776146

Please sign in to comment.