From cf717bf8858e628d4fa9440aec5f6cbce5a328d0 Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Fri, 8 Nov 2024 16:00:57 +0100 Subject: [PATCH] add warning prompt --- Taskfile.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Taskfile.yml b/Taskfile.yml index ba0bef3..9d92541 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -1,9 +1,13 @@ version: '3' vars: + VERSIONFILE: version.txt RELEASE: sh: svu next --strip-prefix - VERSIONFILE: version.txt + BRANCH: + sh: git branch --show-current + COMMIT: + sh: git rev-parse --short --verify {{.BRANCH}} COMMITMSG: "chore: bump version to v{{.RELEASE}}" tasks: @@ -19,6 +23,7 @@ tasks: release:push: aliases: [dorelease] + prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}? cmds: - task: release:file - task: release:tag