mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 18:18:55 +00:00
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:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user