Skip to content

Commit bfca982

Browse files
committed
fix #28 account for renamed API changes documents when attaching release infomration to Github Release
1 parent e5890be commit bfca982

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build/scripts/Targets.fs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,11 @@ let private createReleaseOnGithub (arguments:ParseResults<Arguments>) =
105105
| Some token -> ["--token"; token;]
106106
let releaseNotes = Paths.RootRelative <| Path.Combine(Paths.Output.FullName, sprintf "release-notes-%s.md" currentVersion)
107107
let breakingChanges =
108-
let file = Path.Combine(Paths.Output.FullName, "github-breaking-changes-comments.md")
109-
let relativeFile = Paths.RootRelative <| file
110-
match File.Exists file with
111-
| true -> ["--body"; relativeFile]
112-
| false -> []
108+
let breakingChangesDocs = Paths.Output.GetFiles("breaking-changes-*.md")
109+
breakingChangesDocs
110+
|> Seq.map(fun f -> ["--body"; Paths.RootRelative f.FullName])
111+
|> Seq.collect id
112+
|> Seq.toList
113113
let releaseArgs =
114114
(Paths.Repository.Split("/") |> Seq.toList)
115115
@ ["create-release"

0 commit comments

Comments
 (0)