Update versions #26
Workflow file for this run
This file contains 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: 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 |