Update CHANGELOG.md #37
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: Prevent Source Code Push | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| check-no-source: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check for source code | |
| run: | | |
| # Fail if Python files are found (except in .github) | |
| if find . -name "*.py" -not -path "./.github/*" | grep -q .; then | |
| echo "❌ ERROR: Python source files detected!" | |
| echo "This repository should only contain binaries and documentation." | |
| exit 1 | |
| fi | |
| # Fail if source directories are found | |
| for dir in qrew src source lib; do | |
| if [ -d "$dir" ]; then | |
| echo "❌ ERROR: Source directory '$dir' detected!" | |
| echo "This repository should only contain binaries and documentation." | |
| exit 1 | |
| fi | |
| done | |
| echo "✅ No source code detected - check passed" |