Skip to content

Commit

Permalink
This will almost certainly fail
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBoike committed Apr 12, 2024
1 parent b003905 commit be6765a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/run-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,25 @@ jobs:
run: |
git diff > ../changes.diff
$changes = Get-Item ../changes.diff
Write-Output "Diff size is $($changes.Length) bytes"
if ($changes.Length -gt 20480) {
throw "Changes diff is > 20KB - too much change to trust without verifying"
return 1;
return 1
}
if ($changes.Length -eq 0) {
Write-Output "No changes to commit"
return 0
}
Write-Output "Staging changes"
git add --all
Write-Output "Committing changes"
git commit -m "Updates from running scripts in the 'tools' directory"
Write-Output "Pushing changes to origin"
git push origin master
# - name: Notify Slack on failure
# if: ${{ failure() }}
# shell: pwsh
Expand Down

0 comments on commit be6765a

Please sign in to comment.