diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7789d831b0b..3e1f26b61c8 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -37,7 +37,8 @@ jobs: generate_release_note: name: Generate release note from template runs-on: ubuntu-latest - if: github.repository == 'radius-project/radius' && github.event_name == 'pull_request' && github.event.pull_request.head.ref == 'main' + # We should only create the release note if this is a pull request against main + if: github.repository == 'radius-project/radius' && github.event_name == 'pull_request' && github.base_ref == 'main' env: RELNOTE_FOUND: false steps: