Skip to content

Commit

Permalink
Fix summary clean up (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored Mar 5, 2023
1 parent 23d28b6 commit d8f922a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions docs/tasks.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
1 change: 0 additions & 1 deletion tasks/ps-rule-assertV2/powershell.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d8f922a

Please sign in to comment.