Skip to content

Commit

Permalink
fix(ci): prevent duplicate draft releases in release-drafter (#9252)
Browse files Browse the repository at this point in the history
Release Drafter v6.1.0 has a regression that creates multiple duplicate draft
releases instead of updating existing ones. This change:

- Disables pre-release flag for draft releases
- Excludes pre-releases from being included in drafts
- Explicitly defines PR event types in workflow

See: release-drafter/release-drafter#1425
  • Loading branch information
gustavovalverde authored Feb 13, 2025
1 parent 4132c0e commit dd31d8f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ autolabeler:
name-template: 'Zebra $RESOLVED_VERSION'
tag-template: 'v$RESOLVED_VERSION'
tag-prefix: 'v'
prerelease: true
# Do not mark the draft release as a pre-release
prerelease: false
# Do not include pre-releases in the draft release
include-pre-releases: false

# Categories in rough order of importance to users.
# Based on https://keepachangelog.com/en/1.0.0/
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
- main
# pull_request event is required only for autolabeler
pull_request:
# Only following types are handled by the action, but one can default to all as well
#types: [opened, reopened, synchronize]
# Only following types are handled by the action
types: [opened, reopened, synchronize]
# pull_request_target event is required for autolabeler to support PRs from forks
pull_request_target:
#types: [opened, reopened, synchronize]
Expand Down

0 comments on commit dd31d8f

Please sign in to comment.