exasol / python-toolbox

Infrastructure & Automation Tooling for Python Projects
https://exasol.github.io/python-toolbox/
MIT License
2 stars 0 forks source link

✨ Add support for automatically updating workflow templates to `prepare-release` #146

Closed Nicoretti closed 4 months ago

Nicoretti commented 6 months ago

Summary

Make sure the prepare-release tasks also updates all workflow templates so correct toolbox version is referenced.

Details

Make sure all relevant version references @MAJOR.MINOR.PATCH in the workflows are replaced, with the version number to be released.

E.g.: https://github.com/exasol/python-toolbox/blob/d7f23e5857889df5db2cbb1359381ad994772a57/exasol/toolbox/templates/github/workflows/build-and-publish.yml#L20

Background & Context

This currently is the last tedious and error prone task when it comes to releases and therefore also should be automated. A first trivial (regex) based solution should do.

This is specific to the python-toolbox project and likely will require adding some hooks like the once for the integration tests.