Skip to content

Commit 195ef24

Browse files
committed
Accepts to publish with no bumping if --force is specified.
1 parent 2b0e4e0 commit 195ef24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PostSharp.Engineering.BuildTools/Build/Publishing/PublishCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ internal static bool CanPublish( BuildContext context, PublishSettings settings
4444
{
4545
context.Console.WriteWarning( $"There are no new unpublished changes since the last deployment." );
4646
}
47-
else if ( !hasBumpSinceLastDeployment )
47+
else if ( !hasBumpSinceLastDeployment && !settings.Force )
4848
{
49-
context.Console.WriteError( "There are changes since the last deployment but the version has not been bumped." );
49+
context.Console.WriteError( "There are changes since the last deployment but the version has not been bumped, and --force was not used." );
5050

5151
return false;
5252
}

0 commit comments

Comments
 (0)