Skip to content

Commit

Permalink
correct syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
bayliffe committed Jan 2, 2024
1 parent a765f33 commit 97a6881
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/size_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ jobs:
changed=$(git diff --name-only -r HEAD^1 HEAD)
if [[ -z $changed ]]; then exit 0; fi
big=$(find $changed -size +50k)
if [[ -n $big ]]; then echo "::warning file=${big},title="Large files"::"These files are >50KB, consider shrinking them if possible."; fi
if [[ -n $big ]]; then echo "::warning file=${big},title=Large files::These files are >50KB, consider shrinking them if possible."; fi
too_large=$(find $changed -size +100k)
if [[ -n $too_large ]]; then echo "::error file=$(too_large},title="Files too large"::"These files are >100KB and must be shrunk prior to being comitted."; fi
if [[ -n $too_large ]]; then echo "::error file=$(too_large},title=Files too large::These files are >100KB and must be shrunk prior to being comitted."; fi

0 comments on commit 97a6881

Please sign in to comment.