diff --git a/Taskfile.yml b/Taskfile.yml index 8efbf3a..a6a99d9 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -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}}