feat: update pkgver

This commit is contained in:
Ahmad Husen
2021-10-01 22:27:55 +07:00
parent fb6ab46b3f
commit 4d1983388b
4 changed files with 18 additions and 2 deletions
+8
View File
@@ -11,6 +11,14 @@ sudo -u builder cp -fv "$WORKPATH"/PKGBUILD /tmp/gh-action/PKGBUILD
cd /tmp/gh-action
echo "::endgroup::"
# Update pkgver
if [[ -n $INPUT_PKGVER ]]; then
echo "::group::Updating pkgver on PKGBUILD"
sed -i "s:^pkgver=.*$:pkgver=$INPUT_PKGVER:g" PKGBUILD
git diff PKGBUILD
echo "::endgroup::"
fi
# Update checksums
if [[ $INPUT_UPDPKGSUMS == true ]]; then
echo "::group::Updating checksums on PKGBUILD"