exasol / script-languages-release

Release Repository for Script Language Container for user defined functions (UDF's) that can be used in the EXASOL database.
https://docs.exasol.com/database_concepts/udf_scripts.htm
GNU General Public License v3.0
9 stars 5 forks source link

Add CI check for the package diff documentation #328

Open tomuben opened 3 years ago

tomuben commented 3 years ago

Background

We have now a script which automatically generates the package diff markdown files for all flavors! It would be great to automatically check on GHA if the markdown package diff files are up-to-date with the current commit.

Acceptance Criteria

Implement a script (Python) which calculates the next version number of script-languages-releases: This can either be accomplished by checking the last tag or by parsing doc/changes/changelog.md.

Then create a GHA yml file which runs /scripts/generate_package_diffs_for_flavors/generate_package_diffs_for_flavors.py with the correct parameters (the new version obtained in step one).

Finally check if the git working tree remains clean; If not => Fail the GHA job!

tkilias commented 3 years ago

Using the last tag to compute the next version number probably doesn't work, because we decide the jump and jump needs to be consistent. The script should fail, if the last tag is equal to the version of current last changes_* file.