Skip to content

Commit 625699d

Browse files
committed
update-tdlib: use the correct Octokit header value
1 parent f9ef59b commit 625699d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Scripts/update-tdlib.fsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ let tagNameToVersion(name: string) =
4343
Version.Parse(name.Substring 1)
4444

4545
let readLatestVersion() = task {
46-
let client = GitHubClient(ProductHeaderValue("tdlib-versioned"))
46+
let client = GitHubClient(ProductHeaderValue("tdsharp"))
4747
match Environment.GetEnvironmentVariable "GITHUB_TOKEN" |> Option.ofObj with
4848
| Some token ->
4949
printfn "Found GitHub token credentials in environment, will use."
@@ -60,8 +60,8 @@ let readLatestVersion() = task {
6060

6161
let updateTlScript commitHash =
6262
let content = getTlFiles.ReadAllText()
63-
let versionRegex = Regex @"\$CommitHash = '.*?'"
64-
let newContent = versionRegex.Replace(content, $"$CommitHash = '{commitHash}'")
63+
let commitHashRegex = Regex @"\$CommitHash = '.*?'"
64+
let newContent = commitHashRegex.Replace(content, $"$CommitHash = '{commitHash}'")
6565
getTlFiles.WriteAllText newContent
6666

6767
let processCommandResult(result: CommandResult) =

0 commit comments

Comments
 (0)