Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,16 @@ on:
jobs:
validate-yaml:
name: Validate YAML files
runs-on: ubuntu-latest
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
- name: Install yamllint
# ubuntu-slim is a bare ubuntu:24.04 image, so yamllint is not
# preinstalled. Pinned to the version ubuntu-latest ships, so the rule
# set does not move under the fleet. --user targets ~/.local, which is
# writable by the runner user and already on PATH; the job does not run
# as root and cannot write to system site-packages.
run: pip install --user --break-system-packages --quiet yamllint==1.38.0
- name: Validate YAML files
run: |
if [ -f .yamllint.yml ]; then
Expand All @@ -32,7 +39,7 @@ jobs:
notify:
needs: [validate-yaml]
if: failure()
runs-on: ubuntu-24.04
runs-on: ubuntu-slim
steps:
- name: Notify
uses: mobsuccess-devops/github-actions-notify@master
Expand Down
Loading