-
I want to upload postfix releases to a special directory, but I can't figure out the right condition for this. Can you suggest how to do it? I tryed this folder: '{{- if .IsNightly }}nightly/{{.Version}}{{- else if filter .Version "v\d+\.\d+\.\d+-(dev|alpha|beta|rc)\d*" }}beta/{{.Version}}{{else}}{{.Version}}{{- end }}' but, has error
|
Beta Was this translation helpful? Give feedback.
Answered by
caarlos0
May 23, 2023
Replies: 1 comment 2 replies
-
Hey, there is no folder: '{{- if .IsNightly }}nightly/{{.Version}}{{- else if .PreRelease }}beta/{{.Version}}{{else}}{{.Version}}{{- end }}' |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jidckii
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey, there is no
filter
function, but in this case you can simply check if.Prerelease
field is set, e.g.: