diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 96d8f48519..2352c79686 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -61,7 +61,7 @@ jobs: contents: write pull-requests: write steps: - - name: Checkout + - name: Checkout PR branch uses: actions/checkout@v5 if: ${{ github.event.action != 'closed' }} with: @@ -69,6 +69,14 @@ jobs: ref: ${{ github.event.pull_request.head.sha }} persist-credentials: false + - name: Checkout base branch + uses: actions/checkout@v5 + if: ${{ github.event.action == 'closed' }} + with: + repository: ${{ github.event.pull_request.base.repo.full_name }} + ref: ${{ github.event.pull_request.base.ref }} + persist-credentials: false + - name: Setup Node.js uses: actions/setup-node@v6 if: ${{ github.event.action != 'closed' }}