We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a995949 commit 54a5fe1Copy full SHA for 54a5fe1
1 file changed
Taskfile.yml
@@ -46,7 +46,7 @@ tasks:
46
- git tag {{.tag}}
47
- git push origin {{.tag}}
48
preconditions:
49
- - sh: "! git ls-remote --tags origin {{.tag}} | grep -q ."
+ - sh: '[ -z "$(git ls-remote --tags origin refs/tags/{{.tag}})" ]'
50
msg: "tag {{.tag}} already exists on remote"
51
- sh: '[ "$(git branch --show-current)" = "main" ]'
52
msg: make sure you're on main
0 commit comments