Compare commits
2 Commits
7004c5368e
...
cdab5ab4c8
Author | SHA1 | Date | |
---|---|---|---|
cdab5ab4c8 | |||
f4662eb123 |
4
Makefile
4
Makefile
|
@ -3,7 +3,9 @@
|
|||
BUILD_DIR = ./build
|
||||
TMP_DIR = ./tmp
|
||||
APPS := $(notdir $(wildcard ./cmd/*))
|
||||
VERSION := $(shell git rev-parse --short HEAD)
|
||||
COMMIT_HASH := $(shell git rev-parse --short HEAD)
|
||||
DATE := $(shell date +"%Y%m%d-%H%M%S")
|
||||
VERSION := $(COMMIT_HASH)-$(DATE)
|
||||
FLAGS := "-s -w -X main.Version=$(VERSION)"
|
||||
|
||||
all: build
|
||||
|
|
|
@ -47,7 +47,7 @@ func (*ResultDetail) Run(results []stage.ExecutorResult, confAny any) (
|
|||
}
|
||||
for _, file := range conf.ShowFiles {
|
||||
content, ok := result.Files[file]
|
||||
comment += fmt.Sprintf("File: `%s`:\n", file)
|
||||
comment += fmt.Sprintf("File `%s`:\n", file)
|
||||
if ok {
|
||||
comment += fmt.Sprintf("```\n%s\n```\n", content)
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue
Block a user