mirror of
https://github.com/rsyslog/rsyslog.git
synced 2026-08-24 19:24:14 +02:00
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