Fix private PR formatting check (#3473)

* Make sure our private PR action run also check BuildTool formatting

* Format BuildTools
This commit is contained in:
Lorenz Junglas
2025-11-27 11:17:39 +01:00
committed by GitHub
parent 0581185500
commit 64fc154f39
4 changed files with 7 additions and 6 deletions

View File

@@ -243,7 +243,7 @@ internal partial class ManagerWriter : BaseWriter
WriteLine( "onError( $\"{___e.Message}\\n\\n{___e.StackTrace}\" );" );
}
EndBlock();
WriteLine( "_initialized = true;" );
}

View File

@@ -25,9 +25,9 @@ internal class Build
builder.AddStep( new Steps.InteropGen( "Interop Gen", isPublicSource ) );
if ( !isPublicSource )
{
builder.AddStep( new Steps.ShaderProc( "Shader Proc" ) );
}
{
builder.AddStep( new Steps.ShaderProc( "Shader Proc" ) );
}
// Add native build step if not skipped
if ( !shouldSkipNative )

View File

@@ -18,6 +18,7 @@ internal class PullRequest
new Format( "Format Engine", Solutions.Engine, Format.Mode.Full, verifyOnly: true ),
new Format( "Format Editor", Solutions.Toolbase, Format.Mode.Whitespace, verifyOnly: true ),
new Format( "Format Menu", Solutions.Menu, Format.Mode.Whitespace, verifyOnly: true ),
new Format( "Format Build Tools", Solutions.BuildTools, Format.Mode.Full, verifyOnly: true )
], continueOnFailure: true );
}

View File

@@ -436,7 +436,7 @@ internal class SyncPublicRepo( string name, bool dryRun = false ) : Step( name )
// Extend with all lfs files from first commit to HEAD
var firstCommitHash = string.Empty;
if ( !Utility.RunProcess( "git", "rev-list --max-parents=0 HEAD", relativeRepoPath, onDataReceived: (_, e) =>
if ( !Utility.RunProcess( "git", "rev-list --max-parents=0 HEAD", relativeRepoPath, onDataReceived: ( _, e ) =>
{
if ( !string.IsNullOrWhiteSpace( e.Data ) )
{
@@ -448,7 +448,7 @@ internal class SyncPublicRepo( string name, bool dryRun = false ) : Step( name )
return null;
}
if ( !Utility.RunProcess( "git", $"lfs ls-files --name-only {firstCommitHash} HEAD", relativeRepoPath, onDataReceived: (_, e) =>
if ( !Utility.RunProcess( "git", $"lfs ls-files --name-only {firstCommitHash} HEAD", relativeRepoPath, onDataReceived: ( _, e ) =>
{
if ( !string.IsNullOrWhiteSpace( e.Data ) )
{