Skip to content

Commit 9d63cb1

Browse files
committed
feat(action): Support 'checks' and 'ignore unused rpmlintrc' arguments
Missing in 2.2.0 used previously but present in 2.4.0
1 parent f32defb commit 9d63cb1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

action.yml

+8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ inputs:
3535
profile:
3636
description: 'Print cProfile report'
3737
required: false
38+
ignore-unused-rpmlintrc:
39+
description: 'Do not report unused-rpmlintrc-filter errors'
40+
required: false
41+
checks:
42+
description: 'Debugging option that enables only selected checks (separated by comma)'
43+
required: false
3844
strict:
3945
description: 'Treat all messages as errors'
4046
required: false
@@ -56,5 +62,7 @@ runs:
5662
INSTALLED: ${{ inputs.installed }}
5763
TIME_REPORT: ${{ inputs.time-report }}
5864
PROFILE: ${{ inputs.profile }}
65+
IGNORE_UNUSED_RPMLINTRC: ${{ inputs.ignore-unusued-rpmlintrc }}
66+
CHECKS: ${{ inputs.checks }}
5967
STRICT: ${{ inputs.strict }}
6068
PERMISSIVE: ${{ inputs.permissive }}

rpmlint.sh

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if [[ -n "${PRINT_CONFIG}" ]]; then ARGUMENTS+=" -p "; fi
1212
if [[ -n "${INSTALLED}" ]]; then ARGUMENTS+=" -i ${INSTALLED} "; fi
1313
if [[ -n "${TIME_REPORT}" ]]; then ARGUMENTS+=" -t "; fi
1414
if [[ -n "${PROFILE}" ]]; then ARGUMENTS+=" -T "; fi
15+
if [[ -n "${IGNORE_UNUSED_RPMLINTRC}" ]]; then ARGUMENTS+=" --ignore-unused-rpmlintrc "; fi
16+
if [[ -n "${CHECKS}" ]]; then ARGUMENTS+=" --checks ${CHECKS} "; fi
1517
if [[ -n "${STRICT}" ]]; then ARGUMENTS+=" -s "; fi
1618
if [[ -n "${PERMISSIVE}" ]]; then ARGUMENTS+=" -p "; fi
1719

0 commit comments

Comments
 (0)