Add CODEOWNERS file to ensure owners approve PRs before merging #2
This file contains 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: CODEOWNERS Check | |
on: | |
pull_request: | |
paths: | |
- '**/CODEOWNERS' | |
jobs: | |
check-changes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Check for CODEOWNERS changes | |
run: | | |
if [ -f "CODEOWNERS" ]; then | |
echo "Changes detected in CODEOWNERS file. Please review and seek necessary approvals before merging." | |
exit 1 | |
fi |