You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
TRaSH-Guides/.github/workflows/lint-yaml.yml

27 lines
529 B

name: Lint - YAML
on:
push:
paths:
- "**/*.yml"
pull_request:
paths:
- "**/*.yml"
jobs:
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- name: Run yamllint
run: |
find "${GITHUB_WORKSPACE}" -name '*.yml' -exec \
docker run --rm \
-v "${GITHUB_WORKSPACE}":"${GITHUB_WORKSPACE}" \
-w "${GITHUB_WORKSPACE}" \
peterdavehello/yamllint \
yamllint -c yamllint.yml \
{} +