remove precheck and add warning prompt
This commit is contained in:
parent
da4a2ce7b0
commit
63327bb3ea
1 changed files with 6 additions and 7 deletions
13
Taskfile.yml
13
Taskfile.yml
|
@ -1,23 +1,21 @@
|
||||||
version: '3'
|
version: '3'
|
||||||
|
|
||||||
vars:
|
vars:
|
||||||
|
VERSIONFILE: version.txt
|
||||||
RELEASE:
|
RELEASE:
|
||||||
sh: svu next --strip-prefix
|
sh: svu next --strip-prefix
|
||||||
VERSIONFILE: version.txt
|
BRANCH:
|
||||||
COMMITMSG: "chore: bump version to v{{.RELEASE}}"
|
|
||||||
CURRENTBRANCH:
|
|
||||||
sh: git branch --show-current
|
sh: git branch --show-current
|
||||||
|
COMMIT:
|
||||||
|
sh: git rev-parse --short --verify {{.BRANCH}}
|
||||||
|
COMMITMSG: "chore: bump version to v{{.RELEASE}}"
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
release:tag:
|
release:tag:
|
||||||
preconditions:
|
|
||||||
- test {{.CURRENTBRANCH}} == "main"
|
|
||||||
cmds:
|
cmds:
|
||||||
- git tag v{{.RELEASE}}
|
- git tag v{{.RELEASE}}
|
||||||
|
|
||||||
release:file:
|
release:file:
|
||||||
preconditions:
|
|
||||||
- test {{.CURRENTBRANCH}} == "main"
|
|
||||||
cmds:
|
cmds:
|
||||||
- echo {{.RELEASE}} >{{.VERSIONFILE}}
|
- echo {{.RELEASE}} >{{.VERSIONFILE}}
|
||||||
- git add {{.VERSIONFILE}}
|
- git add {{.VERSIONFILE}}
|
||||||
|
@ -25,6 +23,7 @@ tasks:
|
||||||
|
|
||||||
release:push:
|
release:push:
|
||||||
aliases: [dorelease]
|
aliases: [dorelease]
|
||||||
|
prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||||
cmds:
|
cmds:
|
||||||
- task: release:file
|
- task: release:file
|
||||||
- task: release:tag
|
- task: release:tag
|
||||||
|
|
Loading…
Reference in a new issue