Skip to content

Commit

Permalink
fix #28 account for renamed API changes documents when attaching rele…
Browse files Browse the repository at this point in the history
…ase infomration to Github Release
  • Loading branch information
Mpdreamz committed May 27, 2020
1 parent e5890be commit bfca982
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build/scripts/Targets.fs
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ let private createReleaseOnGithub (arguments:ParseResults<Arguments>) =
| Some token -> ["--token"; token;]
let releaseNotes = Paths.RootRelative <| Path.Combine(Paths.Output.FullName, sprintf "release-notes-%s.md" currentVersion)
let breakingChanges =
let file = Path.Combine(Paths.Output.FullName, "github-breaking-changes-comments.md")
let relativeFile = Paths.RootRelative <| file
match File.Exists file with
| true -> ["--body"; relativeFile]
| false -> []
let breakingChangesDocs = Paths.Output.GetFiles("breaking-changes-*.md")
breakingChangesDocs
|> Seq.map(fun f -> ["--body"; Paths.RootRelative f.FullName])
|> Seq.collect id
|> Seq.toList
let releaseArgs =
(Paths.Repository.Split("/") |> Seq.toList)
@ ["create-release"
Expand Down

0 comments on commit bfca982

Please sign in to comment.