bluerobotics / navigator-lib

Library to unleash the hardware capabilities, packed with features and fuel for your coding adventures
https://docs.bluerobotics.com/navigator-lib/python/
MIT License
9 stars 5 forks source link

Add auto version upgrade based on release-tag #45

Closed RaulTrombin closed 10 months ago

RaulTrombin commented 1 year ago

This new job intendeds to manage the version automatically, based on the release tag.

It will run only after the quick tests (linter and building). If it's a release tag, it will auto-commit the version upgrade and generate a new hash for the next building jobs with a new version; otherwise, it will keep the same hash.

The hash is shared between jobs using the $GITHUB_OUTPUT.

normal: image with tag: image commit: image assets: image

RaulTrombin commented 1 year ago

Was having some issues with the github checkout action, the ref aren't working properly, maybe because it's triggered by a tag. The github.ref ...and github.ref_name aren't working to track the last commit.

This was the solution found, based on this issue. The verion-manager stores the actual/updated hash and use it.

RaulTrombin commented 1 year ago

ping @patrickelectric, this is the same solution we are currently using for navigator-rs and ak09915.

The only know issue is just for past minor releases, once all new tag versions do a commit.