File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -193,9 +193,10 @@ let updateChangelog changelogPath (changelog : Fake.Core.Changelog.Changelog) gi
193193
194194 let linkReferenceTargets =
195195 tailLines
196- |> List.skipWhile String.isNullOrWhiteSpace
197- |> List.takeWhile isRef
198- |> List.rev // Now most recent entry is at the head of the list
196+ |> Seq.skipWhile String.isNullOrWhiteSpace
197+ |> Seq.takeWhile isRef
198+ |> Seq.rev // Now most recent entry is at the head of the list
199+ |> Seq.toList
199200
200201 let newLinkReferenceTargets =
201202 match linkReferenceTargets with
@@ -223,7 +224,7 @@ let updateChangelog changelogPath (changelog : Fake.Core.Changelog.Changelog) gi
223224 List.rev ( tailLines |> List.skip skipCount)
224225 @ newLinkReferenceTargets
225226
226- File.write false changelogPath updatedLines
227+ System.IO. File.WriteAllLines ( changelogPath, updatedLines)
227228
228229 // If build fails after this point but before we commit changes, undo our modifications
229230 Target.activateBuildFailure " RevertChangelog"
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ let gitHubRepoUrl = $"https://github.com/%s{gitOwner}/%s{gitRepoName}"
6666
6767let documentationRootUrl = $" https://%s {gitOwner}.github.io/%s {gitRepoName}"
6868
69- let releaseBranch = " main "
69+ let releaseBranch = " master "
7070let readme = " README.md"
7171let changelogFile = " CHANGELOG.md"
7272
@@ -324,7 +324,7 @@ let updateChangelog ctx =
324324 AssemblyVersion = semVer.AsString
325325 }
326326 ( entry, ValueNone)
327-
327+
328328 latestEntry <- newEntry
329329 changelogBackupFilename <- backupFilename
330330
You can’t perform that action at this time.
0 commit comments