Rainer Gerhards b840717d8f
ci: fix yamllint changed-file handling
Why: the workflow reconstructs changed YAML paths inside a heredoc,
which can hand yamllint malformed filenames.

Impact: changed YAML files are linted reliably even when the action
returns multiline path output.

Before/After: before the job could pass a path with a stray trailing
backslash to yamllint; after it reads the changed-file list from the
environment and lints each file directly.

Technical Overview:
Keep using tj-actions/changed-files with newline-separated output.

Pass the changed-file list through an environment variable instead of
splicing it into the shell script body.

Read the list line by line in bash and invoke yamllint once per file.

This preserves the changed-files-only scope while avoiding shell
reconstruction bugs in the workflow step.

With the help of AI-Agents: Codex
2026-03-17 17:38:55 +01:00
..