File tree 4 files changed +10
-12
lines changed
4 files changed +10
-12
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ RUN pacman -S --noconfirm --needed --overwrite '*' \
6
6
git fakeroot binutils gcc awk binutils xz \
7
7
libarchive bzip2 coreutils file findutils \
8
8
gettext grep gzip sed ncurses util-linux \
9
- pacman-contrib base-devel
9
+ pacman-contrib
10
10
11
11
COPY entrypoint.sh /entrypoint.sh
12
12
COPY build.sh /build.sh
Original file line number Diff line number Diff line change @@ -29,9 +29,9 @@ Glob patterns will be expanded by bash when copying the files to the repository.
29
29
30
30
** Optional** Command line flags for makepkg to build the package (if ` test ` is enabled). The default flags are ` --clean --cleanbuild --nodeps ` .
31
31
32
- ### ` run_command `
32
+ ### ` post_process `
33
33
34
- ** Optional** Install the package and run the specified command to make sure the installed package works .
34
+ ** Optional** A line of commands to execute after processing the package.
35
35
36
36
### ` commit_username `
37
37
Original file line number Diff line number Diff line change @@ -27,9 +27,10 @@ inputs:
27
27
description : ' Command line flags for makepkg to build the package (if `test` is enabled)'
28
28
required : false
29
29
default : ' --clean --cleanbuild --nodeps'
30
- run_command :
31
- description : ' Command to run after installing the package'
30
+ post_process :
31
+ description : ' A line of commands to execute after processing the package'
32
32
required : false
33
+ default : ' '
33
34
commit_username :
34
35
description : ' The username to use when creating the new commit'
35
36
required : true
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ assets=$INPUT_ASSETS
9
9
updpkgsums=$INPUT_UPDPKGSUMS
10
10
test=$INPUT_TEST
11
11
read -r -a test_flags <<< " $INPUT_TEST_FLAGS"
12
- run_command= $INPUT_RUN_COMMAND
12
+ post_process= $INPUT_POST_PROCESS
13
13
commit_username=$INPUT_COMMIT_USERNAME
14
14
commit_email=$INPUT_COMMIT_EMAIL
15
15
ssh_private_key=$INPUT_SSH_PRIVATE_KEY
@@ -93,13 +93,10 @@ cd /tmp/local-repo
93
93
makepkg --printsrcinfo > .SRCINFO
94
94
echo ' ::endgroup::'
95
95
96
- if [ -n " $run_command " ]; then
97
- echo ' ::group::Installing package with makepkg and run command'
98
- git clone https://aur.archlinux.org/yay-bin.git && cd yay-bin && makepkg -si --noconfirm
96
+ if [ -n " $post_process " ]; then
97
+ echo ' ::group::Executing post process commands'
99
98
cd /tmp/local-repo/
100
- grep -E ' depends' .SRCINFO | cut -f 3 -d ' ' | sed -e ' s/://' | xargs yay -S --noconfirm
101
- makepkg -si --noconfirm
102
- eval " $run_command "
99
+ eval " $post_process "
103
100
echo ' ::endgroup::'
104
101
fi
105
102
You can’t perform that action at this time.
0 commit comments