Fix mv error
This commit is contained in:
parent
d609d0ac67
commit
90e65da3d7
|
@ -9,7 +9,7 @@ visudo -c
|
|||
chmod -R a+rw .
|
||||
|
||||
baseDir="$PWD"
|
||||
# [ -n "$INPUT_PKGDIR" ] && inBaseDir=true || inBaseDir=false
|
||||
[ -n "$INPUT_PKGDIR" ] && inBaseDir=true || inBaseDir=false
|
||||
cd "${INPUT_PKGDIR:-.}"
|
||||
oldFiles=$(find -H "$PWD")
|
||||
|
||||
|
@ -17,14 +17,12 @@ sudo -u nobody makepkg -s --noconfirm
|
|||
|
||||
sudo -u nobody makepkg --printsrcinfo > .SRCINFO
|
||||
echo "::set-output name=srcInfo::.SRCINFO"
|
||||
# [ $inBaseDir = false ] && mv .SRCINFO /github/workspace
|
||||
mv -f .SRCINFO /github/workspace
|
||||
[ $inBaseDir = false ] && mv .SRCINFO /github/workspace
|
||||
|
||||
pkgFile=$(sudo -u nobody makepkg --packagelist)
|
||||
relPkgFile="$(realpath --relative-base="$baseDir" "$pkgFile")"
|
||||
echo "::set-output name=pkgFile::$relPkgFile"
|
||||
# [ $inBaseDir = false ] && mv "$pkgFile" /github/workspace
|
||||
mv -f "$pkgFile" /github/workspace
|
||||
[ $inBaseDir = false ] && mv "$pkgFile" /github/workspace
|
||||
|
||||
newFiles=$(find -H "$PWD")
|
||||
toRemove=$(printf '%s\n%s\n' "$newFiles" "$oldFiles" | sort | uniq -u)
|
||||
|
|
Loading…
Reference in New Issue