build: improve API usage and test robustness across platforms

- Replace `.Summary` with `.Version` in the build flag for gitea act_runner version

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2023-04-28 14:40:56 +08:00
parent 0cf31b2d22
commit 0de1fcb7fc

View file

@ -58,7 +58,7 @@ builds:
flags:
- -trimpath
ldflags:
- -s -w -X gitea.com/gitea/act_runner/internal/pkg/ver.version={{ .Summary }}
- -s -w -X gitea.com/gitea/act_runner/internal/pkg/ver.version={{ .Version }}
binary: >-
{{ .ProjectName }}-
{{- .Version }}-
@ -108,4 +108,4 @@ gitea_urls:
download: https://gitea.com
# yaml-language-server: $schema=https://goreleaser.com/static/schema-pro.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
# vim: set ts=2 sw=2 tw=0 fo=cnqoj