mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
Add a default BuildConstants and change encoding on save (#1026)
This commit is contained in:
committed by
TingluoHuang
parent
349e53a4a6
commit
5aa2eff74f
5
.gitignore
vendored
5
.gitignore
vendored
@@ -22,7 +22,4 @@ _dotnetsdk
|
|||||||
TestResults
|
TestResults
|
||||||
TestLogs
|
TestLogs
|
||||||
.DS_Store
|
.DS_Store
|
||||||
**/*.DotSettings.user
|
**/*.DotSettings.user
|
||||||
|
|
||||||
#generated
|
|
||||||
src/Runner.Sdk/BuildConstants.cs
|
|
||||||
19
src/Runner.Sdk/BuildConstants.cs
Normal file
19
src/Runner.Sdk/BuildConstants.cs
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
namespace GitHub.Runner.Sdk
|
||||||
|
{
|
||||||
|
/***
|
||||||
|
* WARNING: This file is automatically regenerated on layout so the runner can provide version/commit info (do not manually edit it).
|
||||||
|
*/
|
||||||
|
public static class BuildConstants
|
||||||
|
{
|
||||||
|
public static class Source
|
||||||
|
{
|
||||||
|
public static readonly string CommitHash = "N/A";
|
||||||
|
}
|
||||||
|
|
||||||
|
public static class RunnerPackage
|
||||||
|
{
|
||||||
|
public static readonly string PackageName = "N/A";
|
||||||
|
public static readonly string Version = "0";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<BuildConstants Include="}"/>
|
<BuildConstants Include="}"/>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<WriteLinesToFile File="Runner.Sdk/BuildConstants.cs" Lines="@(BuildConstants)" Overwrite="true" Encoding="Unicode"/>
|
<WriteLinesToFile File="Runner.Sdk/BuildConstants.cs" Lines="@(BuildConstants)" Overwrite="true" />
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
Reference in New Issue
Block a user