We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d398142 commit 7e5ed1fCopy full SHA for 7e5ed1f
eng/build/Build.Website.cs
@@ -109,9 +109,11 @@ await GetAuthorsContents().ToListAsync()
109
jsonVersions[i == versions.Length - 1 ? "current" : version.Name] = new JsonVersion(
110
version.Changelog is { } changelog
111
? GetVersionFromChangelog(changelog)
112
- : Git($"describe --tags --abbrev=0", version.Path)
113
- .First(x => x.Type == OutputType.Std)
114
- .Text.Trim(),
+ : File.Exists(version.Path / "version.txt")
+ ? File.ReadAllText(version.Path / "version.txt")
+ : Git($"describe --tags --abbrev=0", version.Path)
115
+ .First(x => x.Type == OutputType.Std)
116
+ .Text.Trim(),
117
i == versions.Length - 1 ? version.Name : null
118
);
119
}
0 commit comments