diff --git a/.github/workflows/pull-request.yaml b/.github/workflows/pull-request.yaml index b78304b65..228f1a78e 100644 --- a/.github/workflows/pull-request.yaml +++ b/.github/workflows/pull-request.yaml @@ -81,10 +81,16 @@ jobs: check-changeset: needs: [skip-duplicate-check, changed-packages] + # Renovate PRs get a changeset generated for them by create-renovate-changeset, + # and the changesets release PR consumes changesets instead of adding one. + # head.ref is contributor-controlled on fork PRs, so the release-PR exemption + # also requires the branch to live in this repo. if: | needs.skip-duplicate-check.outputs.should_skip != 'true' && needs.changed-packages.outputs.requires_changeset == 'true' && - github.event.pull_request.user.login != 'renovate[bot]' + github.event.pull_request.user.login != 'renovate[bot]' && + !(github.event.pull_request.head.repo.full_name == github.repository && + startsWith(github.event.pull_request.head.ref, 'changeset-release/')) runs-on: ubuntu-latest steps: - name: Checkout repository