File tree 4 files changed +19
-5
lines changed
4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 1
1
name : Test Action
2
2
on :
3
+ pull_request :
4
+ branches :
5
+ - main
6
+ paths-ignore :
7
+ - ' **.md'
8
+ - ' **.txt'
3
9
push :
4
10
branches :
5
11
- main
26
32
- name : Fetch spec
27
33
run : |
28
34
wget https://raw.githubusercontent.com/ublue-os/packages/main/staging/devpod/devpod.spec
35
+ wget https://raw.githubusercontent.com/ublue-os/packages/main/staging/prompt/prompt.spec
29
36
30
- - name : Test rpmlint
37
+ - name : Test rpmlint (single file)
31
38
uses : ./
32
39
with :
33
40
rpmfiles : ./devpod.spec
41
+
42
+ - name : Test rpmlint (multiple files)
43
+ uses : ./
44
+ with :
45
+ rpmfiles : ' ./devpod.spec, ./prompt.spec'
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ author: 'EyeCantCU'
3
3
description : ' Checks for errors in RPMs via rpmlint'
4
4
inputs :
5
5
rpmfiles :
6
- description : ' Files to be validated by rpmlint'
6
+ description : ' Comma-separated list of files to be validated by rpmlint'
7
7
required : false
8
8
help :
9
9
description : ' Show help message and exit'
Original file line number Diff line number Diff line change 1
1
FROM quay.io/fedora/fedora-minimal:39 AS rpmlint-action
2
2
3
- RUN dnf5 install -y rpmlint
3
+ RUN dnf5 install -y rpmlint && dnf5 clean all
Original file line number Diff line number Diff line change @@ -20,9 +20,11 @@ if [[ -n "${PERMISSIVE}" ]]; then ARGUMENTS+=" -p "; fi
20
20
# Format arguments
21
21
ARGUMENTS=$( echo " $ARGUMENTS " | xargs)
22
22
23
- # Perform rpmlint
23
+ # Perform rpmlint on comma-separated list of files
24
24
if [[ -n " ${RPMFILES} " ]]; then
25
- rpmlint $ARGUMENTS ${RPMFILES[@]}
25
+ for FILE in $( echo " ${RPMFILES} " | tr " ," " \n" ) ; do
26
+ rpmlint $ARGUMENTS $FILE
27
+ done
26
28
else
27
29
rpmlint $ARGUMENTS
28
30
fi
You can’t perform that action at this time.
0 commit comments