fix #208
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Public Repo Hygiene | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| protocol-paths: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Fail on root protocol files | |
| shell: bash | |
| run: | | |
| files="$(git ls-files 'PROTOKOLL_*.txt' | grep -v '^PROTOKOLL/' || true)" | |
| if [ -n "$files" ]; then | |
| echo "Root protocol files are not allowed." | |
| printf '%s\n' "$files" | |
| exit 1 | |
| fi | |
| internal-markers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Fail on internal markers | |
| shell: bash | |
| run: | | |
| if git grep -n -I -i -E 'codex|chatgpt|claude|openai|smarthome-technikerprojekt-private|prompts?_aktiv|ai/|ai\\' -- . ':(exclude).github/workflows/public-repo-hygiene.yml' ':(exclude)server/nodered/node_modules' ':(exclude)server/nodered/package-lock.json' ':(exclude)**/fp-info-cache'; then | |
| echo "Internal markers are not allowed in the public repository." | |
| exit 1 | |
| fi | |
| if git grep -n -I -i -E '(^|[^[:alnum:]_])(gpt|llm)([^[:alnum:]_]|$)' -- . ':(exclude).github/workflows/public-repo-hygiene.yml' ':(exclude)server/nodered/node_modules' ':(exclude)server/nodered/package-lock.json' ':(exclude)**/fp-info-cache'; then | |
| echo "Internal model markers are not allowed in the public repository." | |
| exit 1 | |
| fi |