diff --git a/.github/workflows/pr-on-branch-push.yml b/.github/workflows/pr-on-branch-push.yml index 3c8d687..679fac0 100644 --- a/.github/workflows/pr-on-branch-push.yml +++ b/.github/workflows/pr-on-branch-push.yml @@ -18,15 +18,9 @@ jobs: - name: Create PR run: | 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_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 - + PR_COUNT=$(gh pr list -H ${{ github.ref_name}} -s "open" | wc -l) + echo $PR_COUNT 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"