diff --git a/main.ps1 b/main.ps1 index e2ff9a2..bd7f60f 100644 --- a/main.ps1 +++ b/main.ps1 @@ -211,8 +211,10 @@ if ($latest -and($latest.sha -ne $highestVersion.sha)) $suggestedCommands += "git push origin $($highestVersion.sha):latest --force`n" } - -Write-Output $suggestedCommands -write-output "### Suggested fix:`n```````n$suggestedCommands`n``````" >> $env:GITHUB_STEP_SUMMARY +if ($suggestedCommands -ne "") +{ + Write-Output $suggestedCommands + write-output "### Suggested fix:`n```````n$suggestedCommands`n``````" >> $env:GITHUB_STEP_SUMMARY +} exit $global:returnCode