Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1846,6 +1846,12 @@ def check_already_current(tag=None, sha=None):
if ref is None and tag is None:
error('ERROR: Either ref or tag needs to be set.')

if tag == 'auto':
# Fetch the installed InvenTree version
import src.backend.InvenTree.InvenTree.version as InvenTreeVersion # type: ignore[import]
tag = InvenTreeVersion.inventreeVersion()
info(f'Auto-detected tag: {tag}')

if tag:
tag = tag.lstrip('v')
try:
Expand Down
Loading