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 1ea275d commit eacaca1
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/pr-on-branch-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit eacaca1

Please sign in to comment.