mirror of
https://github.com/wahyd4/helm-charts.git
synced 2026-08-09 04:26:02 +10:00
fix codeowners workflow (#541)
Signed-off-by: Torsten Walter <mail@torstenwalter.de>
This commit is contained in:
@@ -3,11 +3,13 @@ name: Check CODEOWNERS
|
||||
on: pull_request
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: install yq
|
||||
run: |
|
||||
sudo snap install yq
|
||||
- name: generate CODEOWNERS
|
||||
uses: mikefarah/yq@3.4.1
|
||||
run: |
|
||||
./scripts/check-codeowners.sh > .github/CODEOWNERS
|
||||
- name: check CODEOWNERS for modifications
|
||||
|
||||
@@ -15,6 +15,6 @@ for DIR in $(ls -1 -d ./charts/*)
|
||||
do
|
||||
FILE="$DIR/Chart.yaml"
|
||||
DIR=$(echo $DIR | sed 's/^\.//')
|
||||
MAINTAINERS=$(yq r $FILE 'maintainers.[*].name'| sed 's/^/@/' | sort --ignore-case)
|
||||
MAINTAINERS=$(yq e '.maintainers.[].name' $FILE| sed 's/^/@/' | sort --ignore-case)
|
||||
echo $DIR/ $MAINTAINERS
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user