Skip to content

Commit

Permalink
Add a default BuildConstants and change encoding on save (#1026)
Browse files Browse the repository at this point in the history
  • Loading branch information
hross authored Mar 26, 2021
1 parent 8109c96 commit 2b5ddd7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,4 @@ _dotnetsdk
TestResults
TestLogs
.DS_Store
**/*.DotSettings.user

#generated
src/Runner.Sdk/BuildConstants.cs
**/*.DotSettings.user
19 changes: 19 additions & 0 deletions src/Runner.Sdk/BuildConstants.cs
Original file line number Diff line number Diff line change
@@ -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";
}
}
}
2 changes: 1 addition & 1 deletion src/dir.proj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<BuildConstants Include="}"/>
</ItemGroup>

<WriteLinesToFile File="Runner.Sdk/BuildConstants.cs" Lines="@(BuildConstants)" Overwrite="true" Encoding="Unicode"/>
<WriteLinesToFile File="Runner.Sdk/BuildConstants.cs" Lines="@(BuildConstants)" Overwrite="true" />
</Target>

<ItemGroup>
Expand Down

0 comments on commit 2b5ddd7

Please sign in to comment.