feat(Taskfile): add check for clean working tree before release
- add a precondition to ensure the working tree is clean before releasing
🤖
This commit is contained in:
parent
a121f01371
commit
74ee5f3693
1 changed files with 2 additions and 0 deletions
|
@ -21,6 +21,8 @@ tasks:
|
|||
preconditions:
|
||||
- sh: test "{{.BRANCH}}" == "main"
|
||||
msg: "You must be on the main branch to release"
|
||||
- sh: test -z "$(git status --porcelain)"
|
||||
msg: "You must have a clean working tree to release"
|
||||
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||
cmds:
|
||||
- git tag {{.RELEASE}}
|
||||
|
|
Loading…
Reference in a new issue