Skip to content

Commit

Permalink
fix(update-codeowners-from-packages): sort maintainers and remove dup…
Browse files Browse the repository at this point in the history
…licates (#184)

Signed-off-by: Kenji Miyake <[email protected]>

Signed-off-by: Kenji Miyake <[email protected]>
  • Loading branch information
kenji-miyake authored Sep 26, 2022
1 parent 365fab5 commit c3e0ce4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion update-codeowners-from-packages/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ runs:
package_dir=$(dirname "$package_xml")
line="$package_dir/**"
for maintainer in $(grep '<maintainer' "$package_xml" | sed -E 's|.*email="(.*)".*|\1|'); do
for maintainer in $(grep '<maintainer' "$package_xml" | sed -E 's|.*email="(.*)".*|\1|' | sort -u); do
line+=" $maintainer"
done
Expand Down

0 comments on commit c3e0ce4

Please sign in to comment.