File tree 3 files changed +16
-0
lines changed
3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,10 @@ Glob patterns will be expanded by bash when copying the files to the repository.
21
21
22
22
** Optional** Update checksums using ` updpkgsums ` .
23
23
24
+ ### ` test `
25
+
26
+ ** Optional** Check that PKGBUILD could be built.
27
+
24
28
### ` commit_username `
25
29
26
30
** Required** The username to use when creating the new commit.
Original file line number Diff line number Diff line change @@ -19,6 +19,10 @@ inputs:
19
19
description : ' Update checksums using `updpkgsums`'
20
20
required : false
21
21
default : ' false'
22
+ test :
23
+ description : ' Check that PKGBUILD could be built'
24
+ required : false
25
+ default : ' false'
22
26
commit_username :
23
27
description : ' The username to use when creating the new commit'
24
28
required : true
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pkgname=$INPUT_PKGNAME
7
7
pkgbuild=$INPUT_PKGBUILD
8
8
assets=$INPUT_ASSETS
9
9
updpkgsums=$INPUT_UPDPKGSUMS
10
+ test=$INPUT_TEST
10
11
commit_username=$INPUT_COMMIT_USERNAME
11
12
commit_email=$INPUT_COMMIT_EMAIL
12
13
ssh_private_key=$INPUT_SSH_PRIVATE_KEY
@@ -78,6 +79,13 @@ if [ "$updpkgsums" == "true" ]; then
78
79
echo ' ::endgroup::'
79
80
fi
80
81
82
+ if [ " $test " == " true" ]; then
83
+ echo ' ::group::Building package with makepkg'
84
+ cd /tmp/local-repo/
85
+ makepkg --clean --cleanbuild --nodeps
86
+ echo ' ::endgroup::'
87
+ fi
88
+
81
89
echo ' ::group::Generating .SRCINFO'
82
90
cd /tmp/local-repo
83
91
makepkg --printsrcinfo > .SRCINFO
You can’t perform that action at this time.
0 commit comments