diff --git a/.github/workflows/pr-on-branch-push.yml b/.github/workflows/pr-on-branch-push.yml index f65995e..3c8d687 100644 --- a/.github/workflows/pr-on-branch-push.yml +++ b/.github/workflows/pr-on-branch-push.yml @@ -20,8 +20,13 @@ jobs: echo "Get the list of PR for that branch that are open" gh pr list -H $BRANCH_TO_MERGE -s "open" gh pr list -H ${{ github.ref_name}} -s "open" - PR_COUNT=$(gh pr list -H $BRANCH_TO_MERGE -s "open" | wc -l) - echo $PR_COUNT + PR_COUNT_A=$(gh pr list -H $BRANCH_TO_MERGE -s "open" | wc -l) + echo $PR_COUNT_A + PR_COUNT_B=$(gh pr list -H ${{ github.ref_name}} -s "open" | wc -l) + echo $PR_COUNT_B + PR_COUNT_C=$(gh pr list -H ${{ github.ref}} -s "open" | wc -l) + echo $PR_COUNT_C + echo "Checking if there are any PR already" if [[ $PR_COUNT -gt 0 ]]; then echo "Indeed there is at least one PR for this branch"