mongodb / mongodb-atlas-kubernetes

MongoDB Atlas Kubernetes Operator - Manage your MongoDB Atlas clusters from Kubernetes
http://www.mongodb.com/cloud/atlas
Apache License 2.0
152 stars 78 forks source link

CLOUDP-281207: Tag main on release merge #1903

Closed josvazg closed 1 day ago

josvazg commented 1 week ago

With Automatically delete head branches ON we no longer accumulate merged branches, but the tag workflow broke, because the merged branch was deleted before the workflow could tag it.

This fix:

  1. Tags the just merged main branch instead of the removed merged branch.
  2. Allows to call tag manually, in which case the branch to tag for release is an input parameter defaulting to main.
  3. The SBOM PR in triggered by the release workflow completion. The version is taken as an output from the release.

All Submissions:

josvazg commented 1 week ago

LGTM, but can we test it before the next release?

Yep, that is the tricky part. I will try to see how to test without actually releasing. Maybe a pre-release test.