Skip to content

Commit

Permalink
Updated template versioning system
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Sep 18, 2024
1 parent 6e0e428 commit 60ab9ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,12 @@ def index_release_to_elasticsearch(es : Elasticsearch, index_name, release_detai
package_changed = True
if len(metadata_content) > 1:
package_changed = metadata_content[0]['templates']['hash'] != metadata_content[1]['templates']['hash']
templates_version = check_from_index(es, index_name, 'templates')
if package_changed:
templates_version = increment_version(templates_version)
doc = {
"name": name_without_extension,
"version" : version,
"version" : templates_version,
"display_name" : "NECTO project templates",
"hidden" : True,
"vendor" : "MIKROE",
Expand Down

0 comments on commit 60ab9ac

Please sign in to comment.