[CI] Introduce path limits for workflow runs (#528) #580
This file contains hidden or 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: YAML Lint | |
| on: | |
| pull_request: | |
| paths: | |
| - "**/*.yml" | |
| - "**/*.yaml" | |
| push: | |
| paths: | |
| - "**/*.yml" | |
| - "**/*.yaml" | |
| workflow_dispatch: | |
| jobs: | |
| yaml-lint: | |
| name: Validate YAML files | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install yamllint | |
| run: python3 -m pip install yamllint | |
| - name: Run yamllint | |
| run: python3 -m yamllint . |