File tree Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Expand file tree Collapse file tree 4 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,10 @@ Glob patterns will be expanded by bash when copying the files to the repository.
2525
2626** Optional** Check that PKGBUILD could be built.
2727
28+ ### ` test_flags `
29+
30+ ** Optional** Command line flags for makepkg to build the package (if ` test ` is enabled). The default flags are ` --clean --cleanbuild --nodeps ` .
31+
2832### ` commit_username `
2933
3034** Required** The username to use when creating the new commit.
Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ inputs:
2323 description : ' Check that PKGBUILD could be built'
2424 required : false
2525 default : ' false'
26+ test_flags :
27+ description : ' Command line flags for makepkg to build the package (if `test` is enabled)'
28+ required : false
29+ default : ' --clean --cleanbuild --nodeps'
2630 commit_username :
2731 description : ' The username to use when creating the new commit'
2832 required : true
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pkgbuild=$INPUT_PKGBUILD
88assets=$INPUT_ASSETS
99updpkgsums=$INPUT_UPDPKGSUMS
1010test=$INPUT_TEST
11+ read -r -a test_flags <<< " $INPUT_TEST_FLAGS"
1112commit_username=$INPUT_COMMIT_USERNAME
1213commit_email=$INPUT_COMMIT_EMAIL
1314ssh_private_key=$INPUT_SSH_PRIVATE_KEY
8283if [ " $test " == " true" ]; then
8384 echo ' ::group::Building package with makepkg'
8485 cd /tmp/local-repo/
85- makepkg --clean --cleanbuild --nodeps
86+ makepkg " ${test_flags[@]} "
8687 echo ' ::endgroup::'
8788fi
8889
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ set -o errexit -o pipefail -o nounset
55echo ' ::group::Creating builder user'
66useradd --create-home --shell /bin/bash builder
77passwd --delete builder
8+ mkdir -p /etc/sudoers.d/
9+ echo " builder ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/builder
810echo ' ::endgroup::'
911
1012echo ' ::group::Initializing SSH directory'
You can’t perform that action at this time.
0 commit comments