Skip to content

Commit

Permalink
Update pr-on-branch-push.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ines-gimeno-molina authored Apr 29, 2024
1 parent 4b130b1 commit 1ea275d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pr-on-branch-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1ea275d

Please sign in to comment.