feat: update pkgrel

This commit is contained in:
Ahmad Husen
2021-10-01 22:53:00 +07:00
parent 581d4292cc
commit 3487dc866b
4 changed files with 20 additions and 4 deletions
+8
View File
@@ -19,6 +19,14 @@ if [[ -n $INPUT_PKGVER ]]; then
echo "::endgroup::"
fi
# Update pkgver
if [[ -n $INPUT_PKGREL ]]; then
echo "::group::Updating pkgrel on PKGBUILD"
sed -i "s:^pkgrel=.*$:pkgrel=$INPUT_PKGREL:g" PKGBUILD
git diff PKGBUILD
echo "::endgroup::"
fi
# Update checksums
if [[ $INPUT_UPDPKGSUMS == true ]]; then
echo "::group::Updating checksums on PKGBUILD"