Skip to content

Update versions

Update versions #26

Workflow file for this run

name: YAMLLint
on:
pull_request:
paths:
- '**.yaml'
- '**.yml'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Read Python version from .python-version
run: echo "python_version=$(cat .python-version)" >> "$GITHUB_ENV"
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.python_version }}
- name: Install yamllint
run: |
python -m pip install --upgrade pip
grep yamllint requirements.txt | xargs -n 1 pip install
- name: Lint YAML files
run: |
git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
git ls-files --exclude-standard --cached --others -- '*.yaml' '*.yml' | xargs yamllint