Skip to content

Commit

Permalink
reading version and link from last_commit info
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed Sep 17, 2024
1 parent edff3c9 commit bcb67a3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion odabot/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,10 @@ def update_workflows(obj, dry_run, force, loop, pattern):
logger.debug('Help html: %s', help_html)

instr_name = project['name'].lower().replace(' ', '_').replace('-', '_')


instrument_version_link = last_commit.get('web-url', None)
instrument_version = last_commit.get('short_id', None)

logger.info('Generating frontend tab')
generator = MMODATabGenerator(dispatcher_url)
generator.generate(instrument_name = instr_name,
Expand All @@ -588,6 +591,8 @@ def update_workflows(obj, dry_run, force, loop, pattern):
form_dispatcher_url = 'dispatch-data/run_analysis',
weight = 200, # TODO: how to guess the best weight?
citation = acknowl,
instrument_version = instrument_version,
instrument_version_link = instrument_version_link,
help_page = help_html)

sp.check_output(["kubectl", "exec", #"-it",
Expand Down

0 comments on commit bcb67a3

Please sign in to comment.