From 2526a8ef749e24ee394be1830f0c43f3de441b94 Mon Sep 17 00:00:00 2001 From: Will Smith Date: Tue, 27 Feb 2024 10:31:37 -0800 Subject: [PATCH] Fix syntax error in release workflow (#7200) # Description * Fix syntax error in release workflow (failed in 0.30 release) ## Type of change - This pull request fixes a bug in Radius and has an approved issue (issue link required). Fixes: #7106 Signed-off-by: willdavsmith Co-authored-by: vinayada1 <28875764+vinayada1@users.noreply.github.com> --- .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 7789d831b0..3e1f26b61c 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: