diff --git a/README.md b/README.md index be7d0ff..711b09c 100644 --- a/README.md +++ b/README.md @@ -87,6 +87,14 @@ Comma-separated list of linter tags (selectors) for the `vcs-diff-lint` utility * default value: `undefined` * requirements: `optional` +### install\_rpm\_packages + +Space-separated list of RPM packages that are automatically installed into the +testing environment (= Docker container). + +* default value: `undefined` +* requirements: `optional` + ### debug Turn on debugging info. diff --git a/action.yml b/action.yml index 649949c..02d632e 100644 --- a/action.yml +++ b/action.yml @@ -29,6 +29,12 @@ inputs: required: false default: "pylint" + install_rpm_packages: + description: | + Space-separated list of RPM packages that are automatically installed into + the testing environment (= Docker container). + required: false + debug: description: Turn on debugging info. default: 'false' diff --git a/container/cmd b/container/cmd index 7dcc9fe..ab24a17 100755 --- a/container/cmd +++ b/container/cmd @@ -63,6 +63,11 @@ analyze_subdir() vcs-diff-lint --print-fixed-errors "${linter_options[@]}" || result=false } +if test -n "$INPUT_INSTALL_RPM_PACKAGES"; then + # shellcheck disable=SC2086 + dnf install -y $INPUT_INSTALL_RPM_PACKAGES +fi + if test "$GITHUB_EVENT_NAME" = 'pull_request'; then git config --global --add safe.directory '*' git config --global advice.detachedHead false