fix: Show Arch repo update output

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
CharOfString
2026-10-10 21:06:11 -05:00
co-authored by Claude Opus 5.5
parent bf87ba2f2b
commit 7e1d43b057
2 changed files with 9 additions and 4 deletions
+6 -1
View File
@@ -123,10 +123,15 @@ jobs:
sudo apt update
sudo apt install sshpass -y
mkdir -p ~/.ssh/
echo '[I] (Push) Scanning host key...'
ssh-keyscan -p $UPORT -H $UHOST >> ~/.ssh/known_hosts
tarName=$(ls | grep '^arch-.*\.tar$' | head -n 1)
echo "[I] (Push) Uploading $tarName..."
sshpass -p "$UPASSWD" rsync -e "ssh -p $UPORT" $tarName $UUSERS@$UHOST:$UPATH
sshpass -p "$UPASSWD" ssh $UUSERS@$UHOST -p $UPORT $UPROGRAM_ARCH ${{ matrix.arch }} $UPATH/$tarName > /dev/null
# 不要丢弃输出,否则服务器端脚本出错时看不到原因
# Keep the output, otherwise errors from the remote script are invisible.
echo '[I] (Push) Updating GXDE Arch repo database...'
sshpass -p "$UPASSWD" ssh $UUSERS@$UHOST -p $UPORT $UPROGRAM_ARCH ${{ matrix.arch }} $UPATH/$tarName
- name: Create Release
uses: softprops/action-gh-release@v1
+3 -3
View File
@@ -59,11 +59,11 @@ echo '╚═╝ ╚═╝╚═╝ ╚═════╝╚═╝ ╚
case $arch in
x86_64|aarch64) ;;
*) echo "Unsupported arch: $arch"; exit 1 ;;
*) echo "Unsupported arch: $arch" >&2; exit 1 ;;
esac
if [[ ! -f $tar_path ]]; then
echo "$tar_path not found"
echo "$tar_path not found" >&2
exit 1
fi
@@ -89,7 +89,7 @@ for pkg in $tmpDir/*.pkg.tar.*; do
done
if [[ ${#newPackages[@]} == 0 ]]; then
echo "No package in $tar_path"
echo "No package in $tar_path" >&2
exit 1
fi