diff --git a/docs/tasks.md b/docs/tasks.md index 74aaf376..00259c13 100644 --- a/docs/tasks.md +++ b/docs/tasks.md @@ -117,6 +117,7 @@ steps: - **summary**: Determines if a job summary is written. By default, a job summary is generated and attached to the timeline. When set to `false` the job summary is skipped. + The summary is written to `reports/ps_rule_summary.md`. - **version**: The specific version of PSRule to use. By default, the latest stable version of PSRule will be used. When set: - The specific version of PSRule will be installed and imported for use. diff --git a/tasks/ps-rule-assertV2/powershell.ps1 b/tasks/ps-rule-assertV2/powershell.ps1 index ad8512b8..1f435be8 100644 --- a/tasks/ps-rule-assertV2/powershell.ps1 +++ b/tasks/ps-rule-assertV2/powershell.ps1 @@ -357,7 +357,6 @@ finally { try { if ($Summary -and (Test-Path -Path 'reports/ps_rule_summary.md')) { Write-Host "`#`#vso[task.uploadsummary]reports/ps_rule_summary.md"; - $Null = Remove-Item -Path 'reports/ps_rule_summary.md' -Force; } } catch {