kubewarden / policy-sdk-rust

Kubewarden Policy SDK for the Rust programming language
https://kubewarden.io
Apache License 2.0
8 stars 6 forks source link

ci: Reuse release drafts when creating release #109

Closed viccuad closed 1 year ago

viccuad commented 1 year ago

Description

Make release names created by release.yml workflow match what release-drafter.yml expects, so it can create the next draft correctly.

Test

Not tested.

Additional Information

This gives us release names like v1.7.0, which is a change from history. We could change the name in release drafter instead, to expect Kubewarden Rust SDK v0.9.5 format for example, and open drafts with that format.

Tradeoff

Potential improvement

viccuad commented 1 year ago

@jvanz you are right! Refactored following the approach of kubewarden-controller, now it reuses the draft releases. See my fork run: https://github.com/viccuad/policy-sdk-rust/actions/runs/5783251478 And my release draft being used for a release: https://github.com/viccuad/policy-sdk-rust/releases