Skip to content

Remove duplicates and add GitHub action to lint collection-index.yml #4

Remove duplicates and add GitHub action to lint collection-index.yml

Remove duplicates and add GitHub action to lint collection-index.yml #4

Workflow file for this run

name: 'Lint collection-index.yml'
on:
pull_request:
paths:
- _data/collection-index.yml
permissions:
contents: read
pull-requests: write
jobs:
yamllint:
name: 'Yamllint'
runs-on: ubuntu-latest
steps:
- name: 'Checkout'
uses: actions/checkout@v6
- name: 'Yamllint'
uses: karancode/yamllint-github-action@v2
with:
yamllint_file_or_dir: _data/collection-index.yml
yamllint_strict: true
yamllint_config_filepath: .github/lint-config.yaml
yamllint_comment: true
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}