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:
|
preconditions:
|
||||||
- sh: test "{{.BRANCH}}" == "main"
|
- sh: test "{{.BRANCH}}" == "main"
|
||||||
msg: "You must be on the main branch to release"
|
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}}?
|
prompt: Create new release {{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
|
||||||
cmds:
|
cmds:
|
||||||
- git tag {{.RELEASE}}
|
- git tag {{.RELEASE}}
|
||||||
|
|
Loading…
Reference in a new issue