Skip to content

Commit d706913

Browse files
committed
fix: push
1 parent dd8f3c2 commit d706913

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/push-docker.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ jobs:
8686
docker exec action-test-fp-main-1 bench version > version.txt
8787
8888
- name: Formatting and set version variable
89-
run: python ./scripts/tag_image.py
90-
89+
run: python ./.github/workflows/scripts/tag_image.py
9190

9291
- name: Tag and push
9392
run: |

.github/workflows/scripts/tag_image.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ def get_app_version(apps_version):
4141
e = apps_version['erpnext'].split('.')
4242
f = apps_version['frappe'].split('.')
4343

44+
if len(f) < 3 or len(e) < 3:
45+
raise ValueError(f"Expected x.y.z version format. Got frappe={apps_version['frappe']}, erpnext={apps_version['erpnext']}")
46+
4447
# construct version tag
4548
# 12-F10.1_E14.3
4649
version = '{major}-F{frappe_minor}.{frappe_patch}_E{erpnext_minor}.{erpnext_patch}'.format(

0 commit comments

Comments
 (0)