File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ publish:
74
74
- name : pypyr.steps.cmd
75
75
description : --> uninstall current version of package before attempting to reinstall from pypi
76
76
in :
77
- cmd : echo pip uninstall {package_name}
77
+ cmd : echo pip uninstall -y {package_name}
78
78
- name : pypyr.steps.contextcopy
79
79
in :
80
80
contextCopy :
@@ -119,7 +119,7 @@ get_version:
119
119
version_module = importlib.import_module(context['version_module_name'])
120
120
if context.get('is_version_module_loaded'):
121
121
importlib.reload(version_module)
122
- context['version'] = f'v {version_module.__version__}'
122
+ context['version'] = f'{version_module.__version__}'
123
123
context['is_version_module_loaded'] = True
124
124
- name : pypyr.steps.echo
125
125
in :
Original file line number Diff line number Diff line change @@ -21,16 +21,16 @@ steps:
21
21
- name : pypyr.steps.cmd
22
22
in :
23
23
cmd :
24
- run : git tag -l "{version}"
24
+ run : git tag -l "v {version}"
25
25
save : True
26
26
- name : pypyr.steps.stopstepgroup
27
27
description : --> check if tag already exists
28
- run : !py cmdOut['stdout'].rstrip('\r\n') == version
28
+ run : !py cmdOut['stdout'].rstrip('\r\n') == f'v{ version}'
29
29
- name : pypyr.steps.cmd
30
30
comment : tag current HEAD
31
31
description : --> create new tag for release
32
32
in :
33
- cmd : git tag "{version}"
33
+ cmd : git tag "v {version}"
34
34
- name : pypyr.steps.call
35
35
comment : set git info only on ci, not local dev.
36
36
run : ' {isCi}'
You can’t perform that action at this time.
0 commit comments