mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-25 22:20:43 +00:00
* ci: stop running CodeQL, CodSpeed, OSV scan and root entry limit on every PR * ci: keep security-extended on the daily CodeQL scan and the OSV scan on release branch PRs * ci: keep OSV scan on pull requests Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --------- Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
27 lines
747 B
YAML
27 lines
747 B
YAML
name: Root entry limit
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
root-entry-limit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955
|
|
with:
|
|
persist-credentials: false
|
|
- name: Check root entry count
|
|
env:
|
|
MAX_ROOT_ENTRIES: 15
|
|
run: |
|
|
count=$(find . -mindepth 1 -maxdepth 1 -printf '.\n' | wc -l)
|
|
echo "Root has $count entries. Maximum is $MAX_ROOT_ENTRIES."
|
|
if [ "$count" -gt "$MAX_ROOT_ENTRIES" ]; then
|
|
echo "::error::Repository root exceeds $MAX_ROOT_ENTRIES entries. Move new files into an existing directory."
|
|
exit 1
|
|
fi
|