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
1313allow_empty_commits=$INPUT_ALLOW_EMPTY_COMMITS
1414force_push=$INPUT_FORCE_PUSH
1515ssh_keyscan_types=$INPUT_SSH_KEYSCAN_TYPES
16+ update_pkgver=$UPDATE_PKGVER
1617
1718assert_non_empty () {
1819 name=$1
@@ -53,6 +54,21 @@ git config --global user.name "$commit_username"
5354git config --global user.email " $commit_email "
5455echo ' ::endgroup::'
5556
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+
5672echo ' ::group::Cloning AUR package into /tmp/local-repo'
5773git clone -v " https://aur.archlinux.org/${pkgname} .git" /tmp/local-repo
5874echo ' ::endgroup::'
@@ -75,6 +91,7 @@ cd /tmp/local-repo
7591makepkg --printsrcinfo > .SRCINFO
7692echo ' ::endgroup::'
7793
94+
7895echo ' ::group::Committing files to the repository'
7996if [[ -z " $assets " ]]; then
8097 # When $assets are not set, we can add just PKGBUILD and .SRCINFO
You can’t perform that action at this time.
0 commit comments