Catalog check codeowners-check on recommendation-engine #34
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CodeOwners check | |
run-name: Catalog check ${{ github.event.client_payload.check }} on ${{ github.event.client_payload.service }} | |
on: | |
repository_dispatch: | |
types: ["codeowners-check"] | |
workflow_dispatch: | |
inputs: | |
check: | |
required: true | |
jobs: | |
codeowners: | |
env: | |
SERVICE_CATALOG_TOKEN: ${{ secrets.SERVICE_CATALOG_TOKEN }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.client_payload.repository }} | |
- uses: mszostok/codeowners-validator@v0.7.4 | |
with: | |
checks: "files,duppatterns,syntax" | |
- if: success() | |
uses: clearwind-ca/send-result@inputs | |
with: | |
result: "pass" | |
- if: failure() | |
uses: clearwind-ca/send-result@inputs | |
with: | |
result: "fail" |