From be62a5caeb3b6a1c34aa52f922b8aca350b64988 Mon Sep 17 00:00:00 2001 From: willdavsmith Date: Mon, 26 Feb 2024 07:21:41 -0800 Subject: [PATCH] Fixing release bug Signed-off-by: willdavsmith --- .github/workflows/release.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 81d438427d..8300c5ca46 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: