File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ let tagNameToVersion(name: string) =
4343 Version.Parse( name.Substring 1 )
4444
4545let 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
6161let 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
6767let processCommandResult ( result : CommandResult ) =
You can’t perform that action at this time.
0 commit comments