From a11697ca189f252fbdd882326b67373192e2815f Mon Sep 17 00:00:00 2001 From: Jamil Date: Tue, 11 Jun 2024 23:29:11 -0500 Subject: [PATCH] ci: Use github.ref_name instead of github.event_name (#5334) `github.event_name` is never `workflow_call`, so we need a better value to use for the conditional for drafting releases. --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c971383a..3ebc05e5f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -56,8 +56,8 @@ jobs: config_name: release-drafter-gui-client.yml steps: - uses: release-drafter/release-drafter@v6 - # workflow_call event is named workflow_dispatch - if: ${{ github.event_name == 'workflow_dispatch' }} + # Only draft releases on merges to main + if: ${{ github.ref_name == 'main' }} id: update-release-draft with: config-name: ${{ matrix.config_name }}