From 62b7190fcda460e07991ab736b266b6b09de315d Mon Sep 17 00:00:00 2001 From: Sebastian Mark Date: Sat, 9 Nov 2024 09:59:51 +0100 Subject: [PATCH] only run `dorelase` in `main` branch --- Taskfile.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Taskfile.yml b/Taskfile.yml index 39e4695..af2ae6b 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -35,6 +35,8 @@ tasks: dorelease: desc: Do all release steps prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}? + preconditions: + - sh: test "{{.BRANCH}}" == "main" cmds: - task: release:file - task: release:tag