Skip to content

Commit c84fb2b

Browse files
committed
fixup! feat(ci): Fake build project
1 parent 9143342 commit c84fb2b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

build/Changelog.fs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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"

build/build.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ let gitHubRepoUrl = $"https://github.com/%s{gitOwner}/%s{gitRepoName}"
6666

6767
let documentationRootUrl = $"https://%s{gitOwner}.github.io/%s{gitRepoName}"
6868

69-
let releaseBranch = "main"
69+
let releaseBranch = "master"
7070
let readme = "README.md"
7171
let 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

0 commit comments

Comments
 (0)