File tree 4 files changed +12
-1
lines changed
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.
25
25
26
26
** Optional** Check that PKGBUILD could be built.
27
27
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
+
28
32
### ` commit_username `
29
33
30
34
** 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:
23
23
description : ' Check that PKGBUILD could be built'
24
24
required : false
25
25
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'
26
30
commit_username :
27
31
description : ' The username to use when creating the new commit'
28
32
required : true
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ pkgbuild=$INPUT_PKGBUILD
8
8
assets=$INPUT_ASSETS
9
9
updpkgsums=$INPUT_UPDPKGSUMS
10
10
test=$INPUT_TEST
11
+ read -r -a test_flags <<< " $INPUT_TEST_FLAGS"
11
12
commit_username=$INPUT_COMMIT_USERNAME
12
13
commit_email=$INPUT_COMMIT_EMAIL
13
14
ssh_private_key=$INPUT_SSH_PRIVATE_KEY
82
83
if [ " $test " == " true" ]; then
83
84
echo ' ::group::Building package with makepkg'
84
85
cd /tmp/local-repo/
85
- makepkg --clean --cleanbuild --nodeps
86
+ makepkg " ${test_flags[@]} "
86
87
echo ' ::endgroup::'
87
88
fi
88
89
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ set -o errexit -o pipefail -o nounset
5
5
echo ' ::group::Creating builder user'
6
6
useradd --create-home --shell /bin/bash builder
7
7
passwd --delete builder
8
+ mkdir -p /etc/sudoers.d/
9
+ echo " builder ALL=(root) NOPASSWD:ALL" > /etc/sudoers.d/builder
8
10
echo ' ::endgroup::'
9
11
10
12
echo ' ::group::Initializing SSH directory'
You can’t perform that action at this time.
0 commit comments