Add a YAML linter for k8s yaml files #11911
Workflow file for this run
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: Link Checker | |
on: | |
pull_request: | |
workflow_run: | |
types: | |
- completed | |
workflows: | |
- 'Release' | |
jobs: | |
linkChecker: | |
runs-on: ubuntu-latest | |
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'pull_request' }} | |
container: | |
image: lycheeverse/lychee:0.10 | |
env: | |
GITHUB_TOKEN: $LYCHEE_GITHUB_TOKEN | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check external links using lychee | |
run: | | |
lychee -v '**/*.md' --exclude-mail --exclude-path examples/interdomain/usecases/nsm_kuma_universal_vl3/README.md examples/interdomain/usecases/nsm_consul_vl3/README.md --exclude '.*?ref=.*' |