Get pkgFile name

This commit is contained in:
Santiago Lo Coco 2022-02-27 20:16:04 -03:00
parent 54723b42c0
commit 5149d0a578
1 changed files with 2 additions and 1 deletions

View File

@ -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