Closed constanca-m closed 5 months ago
I updated the workflow to only release a new tag if the new version in version.py
is bigger than the latest released version. This way, if there was no change to the variable version in version.py
, we also do not release a new tag, or if the version decreased somehow, we do not release it as well. @axw @gizas, is it better this way?
What does this PR do?
The current release workflow was failing with:
Putting the version variable inside
"
to make it a string solves this issue.We also check if the version variable in
version.py
increased. If that is the case, then we create a new release. Otherwise, nothing happens.Checklist
CHANGELOG.md
How to test
As far as I am aware, the only way to test would be by using your own repository. Just do the following:
share/version.py
file there.Then make the commits to check everything is working as expected. You need to update the
version.py
file to trigger the workflow, unless you also change the trigger or make the workflow run manually.It is not possible to test it here, because we would have to update the
version.py
file of ESF, which does not make sense in this case.