Skip to content

Commit 08595ee

Browse files
committed
add warning when extras regex doesn't match - related to #9
1 parent 6b28ddf commit 08595ee

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/v1/stages/extras/extras.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,16 @@ func (Stage) Run(ctx *context.Context) error {
9595
}
9696

9797
extraFile.NewContents = []byte(contents)
98+
99+
if !extraFile.HasChanges() {
100+
log.WithFields(log.Fields{
101+
"contents": string(extraFile.NewContents),
102+
"path": extra.Path,
103+
"repoName": ctx.Repository.Name,
104+
"repoOwner": ctx.Repository.Owner,
105+
}).Warn("no change detected to extras file")
106+
}
107+
98108
ctx.Files = append(ctx.Files, extraFile)
99109
}
100110
return nil

0 commit comments

Comments
 (0)