Skip to content

Commit

Permalink
CI: check renovate.json groups against CODEOWNERS
Browse files Browse the repository at this point in the history
Make sure the groups will stay up to date with CODEOWNERS

Signed-off-by: Adam Cmiel <[email protected]>
  • Loading branch information
chmeliik committed Dec 6, 2024
1 parent 80bb1d2 commit 92020c1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/check-task-owners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,22 @@ jobs:
- name: Check task owners
run: |
./hack/check-task-owners.sh
- name: Check renovate.json groups
run: |
#!/bin/bash
set -euo pipefail
renovate_content=$(cat renovate.json)
./hack/update_renovate_json_based_on_codeowners.py -o renovate.json
uptodate=$(jq --argjson previous "$renovate_content" '$previous == .' renovate.json)
echo "renovate.json is up to date: $uptodate"
if [[ $uptodate == false ]]; then
echo
git --no-pager diff -- renovate.json
echo
echo "To apply the updates, run: ./hack/update_renovate_json_based_on_codeowners.py -o renovate.json"
exit 1
fi

0 comments on commit 92020c1

Please sign in to comment.