File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 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.
2121
2222** Optional** Update checksums using ` updpkgsums ` .
2323
24+ ### ` test `
25+
26+ ** Optional** Check that PKGBUILD could be built.
27+
2428### ` commit_username `
2529
2630** 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:
1919 description : ' Update checksums using `updpkgsums`'
2020 required : false
2121 default : ' false'
22+ test :
23+ description : ' Check that PKGBUILD could be built'
24+ required : false
25+ default : ' false'
2226 commit_username :
2327 description : ' The username to use when creating the new commit'
2428 required : true
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pkgname=$INPUT_PKGNAME
77pkgbuild=$INPUT_PKGBUILD
88assets=$INPUT_ASSETS
99updpkgsums=$INPUT_UPDPKGSUMS
10+ test=$INPUT_TEST
1011commit_username=$INPUT_COMMIT_USERNAME
1112commit_email=$INPUT_COMMIT_EMAIL
1213ssh_private_key=$INPUT_SSH_PRIVATE_KEY
@@ -78,6 +79,13 @@ if [ "$updpkgsums" == "true" ]; then
7879 echo ' ::endgroup::'
7980fi
8081
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+
8189echo ' ::group::Generating .SRCINFO'
8290cd /tmp/local-repo
8391makepkg --printsrcinfo > .SRCINFO
You can’t perform that action at this time.
0 commit comments