Skip to content

Commit

Permalink
RPM dependencies (e.g. for PyLint)
Browse files Browse the repository at this point in the history
  • Loading branch information
praiskup committed Oct 24, 2023
1 parent 704212a commit 55bef8f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
5 changes: 5 additions & 0 deletions container/cmd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 55bef8f

Please sign in to comment.