File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ commit_message=$INPUT_COMMIT_MESSAGE
13
13
allow_empty_commits=$INPUT_ALLOW_EMPTY_COMMITS
14
14
force_push=$INPUT_FORCE_PUSH
15
15
ssh_keyscan_types=$INPUT_SSH_KEYSCAN_TYPES
16
+ update_pkgver=$UPDATE_PKGVER
16
17
17
18
assert_non_empty () {
18
19
name=$1
@@ -53,6 +54,21 @@ git config --global user.name "$commit_username"
53
54
git config --global user.email " $commit_email "
54
55
echo ' ::endgroup::'
55
56
57
+ echo ' ::group::Updating pkgver'
58
+ if [ " $update_pkgver " = " true" ]; then
59
+ echo ' Running `makepkg -od` to update pkgver'
60
+ mkdir -p /tmp/makepkg
61
+ cp " $pkgbuild " /tmp/makepkg/PKGBUILD
62
+ (
63
+ cd /tmp/makepkg;
64
+ makepkg -od;
65
+ )
66
+ pkgbuild=/tmp/makepkg/PKGBUILD
67
+ else
68
+ echo ' Not updating pkgver'
69
+ fi
70
+ echo ' ::endgroup::'
71
+
56
72
echo ' ::group::Cloning AUR package into /tmp/local-repo'
57
73
git clone -v " https://aur.archlinux.org/${pkgname} .git" /tmp/local-repo
58
74
echo ' ::endgroup::'
@@ -75,6 +91,7 @@ cd /tmp/local-repo
75
91
makepkg --printsrcinfo > .SRCINFO
76
92
echo ' ::endgroup::'
77
93
94
+
78
95
echo ' ::group::Committing files to the repository'
79
96
if [[ -z " $assets " ]]; then
80
97
# When $assets are not set, we can add just PKGBUILD and .SRCINFO
You can’t perform that action at this time.
0 commit comments