Delete .gitignore #15
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: Repo Structure Check | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| verify-files: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check required files via GitHub API | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| missing=false | |
| required_files=( | |
| "README.md" | |
| "CONTRIBUTING.md" | |
| ".gitignore" | |
| ) | |
| echo "Checking required files in ${{ github.repository }}" | |
| for file in "${required_files[@]}"; do | |
| echo "Checking $file..." | |
| status=$(curl -s -o /dev/null -w "%{http_code}" \ | |
| -H "Authorization: token $GH_TOKEN" \ | |
| https://api.github.com/repos/${{ github.repository }}/contents/$file) | |
| if [ "$status" != "200" ]; then | |
| echo "Missing: $file" | |
| missing=true | |
| else | |
| echo "Found $file" | |
| fi | |
| done | |
| if [ "$missing" = true ]; then | |
| echo "One or more required files are missing." | |
| exit 1 | |
| fi | |
| echo "All required files are present." |