From 5149d0a5784aba5c6022c9c35643cb99a66a975e Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Sun, 27 Feb 2022 20:16:04 -0300 Subject: [PATCH] Get pkgFile name --- pkgbuild.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgbuild.sh b/pkgbuild.sh index 26064ba..3e73c6d 100755 --- a/pkgbuild.sh +++ b/pkgbuild.sh @@ -9,10 +9,11 @@ oldFiles=$(find -H "$PWD") sudo -H -u nobody makepkg --syncdeps --noconfirm -sudo -H -u nobody makepkg --printsrcinfo > .SRCINFO +sudo -u nobody makepkg --printsrcinfo > .SRCINFO echo "::set-output name=srcInfo::.SRCINFO" sudo mv .SRCINFO /github/workspace +pkgFile=$(sudo -u nobody makepkg --packagelist) relPkgFile="$(realpath --relative-base="$baseDir" "$pkgFile")" echo "::set-output name=pkgFile::$relPkgFile" sudo mv "$pkgFile" /github/workspace