Skip to content

Commit c6e9678

Browse files
authored
Merge pull request #29 from Thyrum/master
Add `updpkgsums` option
2 parents e994b94 + 1bb3c12 commit c6e9678

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ RUN pacman -S --noconfirm --needed --overwrite '*' \
55
openssh sudo \
66
git fakeroot binutils gcc awk binutils xz \
77
libarchive bzip2 coreutils file findutils \
8-
gettext grep gzip sed ncurses util-linux
8+
gettext grep gzip sed ncurses util-linux \
9+
pacman-contrib
910

1011
COPY entrypoint.sh /entrypoint.sh
1112
COPY build.sh /build.sh

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ inputs:
1515
description: 'Newline-separated glob patterns for additional files to be added to the AUR repository'
1616
required: false
1717
default: ''
18+
updpkgsums:
19+
description: 'Update checksums using `updpkgsums`'
20+
required: false
21+
default: 'false'
1822
commit_username:
1923
description: 'The username to use when creating the new commit'
2024
required: true

build.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -o errexit -o pipefail -o nounset
66
pkgname=$INPUT_PKGNAME
77
pkgbuild=$INPUT_PKGBUILD
88
assets=$INPUT_ASSETS
9+
updpkgsums=$INPUT_UPDPKGSUMS
910
commit_username=$INPUT_COMMIT_USERNAME
1011
commit_email=$INPUT_COMMIT_EMAIL
1112
ssh_private_key=$INPUT_SSH_PRIVATE_KEY
@@ -70,6 +71,13 @@ if [[ -n "$assets" ]]; then
7071
fi
7172
echo '::endgroup::'
7273

74+
if [ "$updpkgsums" == "true" ]; then
75+
echo '::group::Updating checksums'
76+
cd /tmp/local-repo/
77+
updpkgsums
78+
echo '::endgroup::'
79+
fi
80+
7381
echo '::group::Generating .SRCINFO'
7482
cd /tmp/local-repo
7583
makepkg --printsrcinfo >.SRCINFO

0 commit comments

Comments
 (0)