Skip to content

Commit 8e17464

Browse files
committed
refactor: adds version number in prompt
1 parent 9809809 commit 8e17464

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Taskfile.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,14 @@ dotenv: ['.env']
44

55
tasks:
66
publish:tag:
7-
prompt: "Before we build, is the version number up to date?"
7+
vars:
8+
PROJ_VERSION:
9+
sh: poetry version | awk '{print $2}'
10+
prompt: "Before we build, is the version {{.PROJ_VERSION}} number up to date?"
811
desc: tags the current commit
912
cmds:
10-
- git tag -a v$(poetry version | awk '{print $2}') -m "v$(poetry version | awk '{print $2}')"
11-
- git push origin v$(poetry version | awk '{print $2}')
13+
- git tag -a v${{.PROJ_VERSION}} -m "v{{.PROJ_VERSION}}"
14+
- git push origin v${{.PROJ_VERSION}}
1215
build:image:
1316
prompt: Have you made sure the version number is up to date?
1417
desc: builds publishable python package

0 commit comments

Comments
 (0)