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.
This commit is contained in:
Jamil
2024-06-11 23:29:11 -05:00
committed by GitHub
parent adaaa0cbd3
commit a11697ca18

View File

@@ -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 }}