mirror of
https://github.com/Facepunch/sbox-public.git
synced 2025-12-23 22:48:07 -05:00
Fix private PR formatting check (#3473)
* Make sure our private PR action run also check BuildTool formatting * Format BuildTools
This commit is contained in:
@@ -243,7 +243,7 @@ internal partial class ManagerWriter : BaseWriter
|
||||
WriteLine( "onError( $\"{___e.Message}\\n\\n{___e.StackTrace}\" );" );
|
||||
}
|
||||
EndBlock();
|
||||
|
||||
|
||||
|
||||
WriteLine( "_initialized = true;" );
|
||||
}
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
@@ -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 ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user