Skip to content

Commit

Permalink
feat(action): Support 'checks' and 'ignore unused rpmlintrc' arguments
Browse files Browse the repository at this point in the history
Missing in 2.2.0 used previously but present in 2.4.0
  • Loading branch information
EyeCantCU committed Dec 20, 2023
1 parent f32defb commit 9d63cb1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ inputs:
profile:
description: 'Print cProfile report'
required: false
ignore-unused-rpmlintrc:
description: 'Do not report unused-rpmlintrc-filter errors'
required: false
checks:
description: 'Debugging option that enables only selected checks (separated by comma)'
required: false
strict:
description: 'Treat all messages as errors'
required: false
Expand All @@ -56,5 +62,7 @@ runs:
INSTALLED: ${{ inputs.installed }}
TIME_REPORT: ${{ inputs.time-report }}
PROFILE: ${{ inputs.profile }}
IGNORE_UNUSED_RPMLINTRC: ${{ inputs.ignore-unusued-rpmlintrc }}
CHECKS: ${{ inputs.checks }}
STRICT: ${{ inputs.strict }}
PERMISSIVE: ${{ inputs.permissive }}
2 changes: 2 additions & 0 deletions rpmlint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ if [[ -n "${PRINT_CONFIG}" ]]; then ARGUMENTS+=" -p "; fi
if [[ -n "${INSTALLED}" ]]; then ARGUMENTS+=" -i ${INSTALLED} "; fi
if [[ -n "${TIME_REPORT}" ]]; then ARGUMENTS+=" -t "; fi
if [[ -n "${PROFILE}" ]]; then ARGUMENTS+=" -T "; fi
if [[ -n "${IGNORE_UNUSED_RPMLINTRC}" ]]; then ARGUMENTS+=" --ignore-unused-rpmlintrc "; fi
if [[ -n "${CHECKS}" ]]; then ARGUMENTS+=" --checks ${CHECKS} "; fi
if [[ -n "${STRICT}" ]]; then ARGUMENTS+=" -s "; fi
if [[ -n "${PERMISSIVE}" ]]; then ARGUMENTS+=" -p "; fi

Expand Down

0 comments on commit 9d63cb1

Please sign in to comment.