runwhen-contrib / rw-public-codecollection

RunWhen Public Codecollection Repository - Open Source troubleshooting runbook library for Kubernetes and cloud infrastructure components.
https://registry.runwhen.com
Apache License 2.0
40 stars 5 forks source link

Add semver & changelog automation #105

Closed jon-funk closed 1 year ago

jon-funk commented 1 year ago

To perform a release: increment the x.y.z value in the VERSION file by some amount as long as it adheres to the x.y.z format, commit and PR, once merged to main the action will fire, creating and pushing a tag in the form: vx.y.z and create a changelog entry of all commit messages matching the given regex pattern, the changelog additions will be in an open PR similar to the index update.

The default regex in the workflow file is (Add|Feat).

Notes:

❓ Any adjustment/additions to the (Add|Feat) regex?

changelog example: https://github.com/jon-funk/rw-public-codecollection/blob/main/CHANGELOG.md action logs: https://github.com/jon-funk/rw-public-codecollection/actions/runs/4558692803 version content: https://github.com/jon-funk/rw-public-codecollection/blob/main/VERSION commit pattern: https://github.com/jon-funk/rw-public-codecollection/commits/main