Skip to content

Adding codeowners action #5

Adding codeowners action

Adding codeowners action #5

name: Assign and Update Code Owners
on:
pull_request:
types: [opened, synchronize]
jobs:
update-codeowners:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install yq
run: |
sudo snap install yq
- name: Run generate_codeowners.sh
run: |
chmod +x .github/generate_codeowners.sh
./.github/generate_codeowners.sh
- name: Commit CODEOWNERS changes
uses: EndBug/[email protected]
with:
add: ".github/CODEOWNERS"
message: "Update CODEOWNERS file"
author_name: "github-actions"
author_email: "[email protected]"
ref: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}