Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions .github/workflows/validate-submissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,12 @@ jobs:
- name: Ensure only allowed files are changed
run: |
for f in $(git diff --name-only origin/main...HEAD); do
# 1) Block any README.md immediately
if [[ "$f" == *README.md ]]; then
echo "❌ PR modifies a README file: $f"
exit 1
fi

# 2) Allow teams.md or anything under submissions/
# 1) Allow teams.md or anything under submissions/
if [[ "$f" == teams.md || "$f" == submissions/* ]]; then
continue
fi

# 3) Everything else is unauthorized
# 2) Everything else is unauthorized
echo "❌ PR modifies unauthorized file: $f"
exit 1
done
Expand Down