Skip to content

Commit

Permalink
Adding diff to job summary
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsimons committed Dec 2, 2024
1 parent f3e9203 commit 8842db3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/run-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ jobs:
$changes = Get-Item ../changes.diff
Write-Output "Diff size is $($changes.Length) bytes"
Write-Output ../changes.diff
if ($changes.Length -gt 20480) {
echo "## Changes diff" >> $env:GITHUB_STEP_SUMMARY
echo "```$changes```" >> $env:GITHUB_STEP_SUMMARY
throw "Changes diff is > 20KB - too much change to trust without verifying"
return 1
}
Expand Down

0 comments on commit 8842db3

Please sign in to comment.