We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 660d5cf + bd0e45d commit 0bc541cCopy full SHA for 0bc541c
.github/workflows/check_if_branch_is_mergeable.yml
@@ -30,6 +30,10 @@ jobs:
30
- name: Check and store mergable state
31
id: mergeable_check
32
run: |
33
+ if [ -z "${{ github.event.pull_request.head.sha }}" ]; then
34
+ echo "Merging to main";
35
+ exit 0;
36
+ fi
37
echo "Check if main is ancestor of ${{ github.event.pull_request.head.sha }} (branch HEAD)";
38
if $(git merge-base --is-ancestor ${{ env.main_sha }} ${{ github.event.pull_request.head.sha }}); then
39
echo "Branch is mergeable";
0 commit comments