From 8e1746469a00cad9fb2d003713eceba4742646e7 Mon Sep 17 00:00:00 2001 From: Dev Mukherjee Date: Sat, 29 Jun 2024 14:43:51 +1000 Subject: [PATCH] refactor: adds version number in prompt --- Taskfile.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Taskfile.yml b/Taskfile.yml index f2e7dd7..57cc3e5 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -4,11 +4,14 @@ dotenv: ['.env'] tasks: publish:tag: - prompt: "Before we build, is the version number up to date?" + vars: + PROJ_VERSION: + sh: poetry version | awk '{print $2}' + prompt: "Before we build, is the version {{.PROJ_VERSION}} number up to date?" desc: tags the current commit cmds: - - git tag -a v$(poetry version | awk '{print $2}') -m "v$(poetry version | awk '{print $2}')" - - git push origin v$(poetry version | awk '{print $2}') + - git tag -a v${{.PROJ_VERSION}} -m "v{{.PROJ_VERSION}}" + - git push origin v${{.PROJ_VERSION}} build:image: prompt: Have you made sure the version number is up to date? desc: builds publishable python package