Skip to content

Commit 2e329cb

Browse files
author
MochiOS Team
committed
fix: add debug + error handling to repo.yml symlink replace step
1 parent 685dd2c commit 2e329cb

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎.github/workflows/repo.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,20 @@ jobs:
9696
9797
- name: Replace symlinks with real files
9898
run: |
99+
echo "checking /repo/os/x86_64..."
100+
ls -la /repo/os/x86_64/ || echo "dir not found!"
99101
cd /repo/os/x86_64
100102
for f in mochi.db mochi.files; do
101103
if [ -L "$f" ]; then
102104
real="${f}.tar.zst"
103105
rm -f "$f" "${f}.sig"
104-
cp "$real" "$f"
105-
[ -f "${real}.sig" ] && cp "${real}.sig" "${f}.sig"
106+
cp -v "$real" "$f" || echo "cp failed for $real"
107+
fi
108+
if [ -f "${f}.tar.zst.sig" ]; then
109+
cp -v "${f}.tar.zst.sig" "${f}.sig" || true
106110
fi
107111
done
112+
echo "done"
108113
109114
- name: Static binary
110115
run: |

0 commit comments

Comments
 (0)