Skip to content

Commit

Permalink
add a validate_codeowners.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmook committed Jan 9, 2023
1 parent 2618f62 commit 3bbfe04
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/validate_codeowners.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Validate CODEOWNERS

on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:

jobs:
validate-codeowners:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Docker login
uses: docker/login-action@v2
with:
registry: ezcater-production.jfrog.io
username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_PASSWORD }}

- name: Pull validator image
run: docker pull ezcater-production.jfrog.io/codeowners-validator

- name: Run validator
run: |
docker run --rm \
-v ${PWD}:${PWD} \
ezcater-production.jfrog.io/codeowners-validator \
validate ${PWD}

0 comments on commit 3bbfe04

Please sign in to comment.