name: YAML check on: pull_request: branches: [main] paths: - "**/*.yml" - "**/*.yaml" - ".github/workflows/yml.yml" - ".github/yamllint.yml" concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} jobs: yaml-check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Validate YAML files run: yamllint -c .yamllint.yml .