Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/sync-codeowners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
# Find all OWNERS files and generate CODEOWNERS content
CODEOWNERS_CONTENT="# CODEOWNERS file\n# This file is automatically generated from the OWNERS files in the repository.\n# For more information, see: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners\n\n"
for OWNERS_FILE in $(find . -name 'OWNERS'); do
for OWNERS_FILE in $(find . -name 'OWNERS' | sort -s --ignore-case --unique); do
RELATIVE_PATH=$(dirname "$OWNERS_FILE")
OWNERS=$(cat "$OWNERS_FILE" | xargs -n1 | sed 's/^/@/' | xargs)
CODEOWNERS_CONTENT+="$RELATIVE_PATH/* $OWNERS\n"
Expand Down