Skip to content

Commit e5f7428

Browse files
authored
使用相对链接创建符号链接
1 parent ba8069d commit e5f7428

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/pr-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ jobs:
257257
else
258258
rm -f "$file"
259259
fi
260-
ln -s "$target" "$file"
260+
ln -s "$(realpath --relative-to="$(dirname "$file")" "$target")" "$file"
261261
echo "PR${{ env.GITHUB_PR_NUMBER }}" >> "/home/runner/gh-pages/data/refs/$key"
262262
done
263263
for ref in /home/runner/gh-pages/data/refs/*; do

0 commit comments

Comments
 (0)