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 @@ -29,6 +29,10 @@ 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
+ ### ` post_process `
33
+
34
+ ** Optional** A line of commands to execute after processing the package.
35
+
32
36
### ` commit_username `
33
37
34
38
** Required** The username to use when creating the new commit.
Original file line number Diff line number Diff line change @@ -27,6 +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
+ post_process :
31
+ description : ' A line of commands to execute after processing the package'
32
+ required : false
33
+ default : ' '
30
34
commit_username :
31
35
description : ' The username to use when creating the new commit'
32
36
required : true
Original file line number Diff line number Diff line change @@ -9,6 +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
+ post_process=$INPUT_POST_PROCESS
12
13
commit_username=$INPUT_COMMIT_USERNAME
13
14
commit_email=$INPUT_COMMIT_EMAIL
14
15
ssh_private_key=$INPUT_SSH_PRIVATE_KEY
@@ -92,6 +93,13 @@ cd /tmp/local-repo
92
93
makepkg --printsrcinfo > .SRCINFO
93
94
echo ' ::endgroup::'
94
95
96
+ if [ -n " $post_process " ]; then
97
+ echo ' ::group::Executing post process commands'
98
+ cd /tmp/local-repo/
99
+ eval " $post_process "
100
+ echo ' ::endgroup::'
101
+ fi
102
+
95
103
echo ' ::group::Committing files to the repository'
96
104
if [[ -z " $assets " ]]; then
97
105
# When $assets are not set, we can add just PKGBUILD and .SRCINFO
You can’t perform that action at this time.
0 commit comments