Skip to content

Commit f1976a2

Browse files
committed
use exit code instead
1 parent a995949 commit f1976a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Taskfile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ tasks:
4646
- git tag {{.tag}}
4747
- git push origin {{.tag}}
4848
preconditions:
49-
- sh: "! git ls-remote --tags origin {{.tag}} | grep -q ."
49+
- sh: "! git ls-remote --exit-code --tags origin refs/tags/{{.tag}}"
5050
msg: "tag {{.tag}} already exists on remote"
5151
- sh: '[ "$(git branch --show-current)" = "main" ]'
5252
msg: make sure you're on main

0 commit comments

Comments
 (0)