Update build-book.yaml
This commit is contained in:
5
.github/workflows/build-book.yaml
vendored
5
.github/workflows/build-book.yaml
vendored
@@ -43,7 +43,8 @@ jobs:
|
||||
echo "使用的代理前缀: ${{ vars.IMAGE_PROXY_URL }}"
|
||||
find clone/daily -type f -name "*.md" -exec sed -i \
|
||||
-e 's|upload.chinaz.com|pic.chinaz.com|g' \
|
||||
-e 's|https://pic.chinaz.com|${{ vars.IMAGE_PROXY_URL }}https://pic.chinaz.com|g' {} +
|
||||
-e 's|https://pic.chinaz.com|${{ vars.IMAGE_PROXY_URL }}&|g' \
|
||||
-e 's|https://tvax[12].sinaimg.cn|${{ vars.FOLO_IMAGE_PROXY_URL }}&|g' {} +
|
||||
echo "URL 替换完成。"
|
||||
else
|
||||
echo "警告: 仓库变量 IMAGE_PROXY_URL 未设置,跳过 URL 替换。"
|
||||
@@ -262,4 +263,4 @@ jobs:
|
||||
commit_message: "chore(content): 自动同步每日文章及更新主页"
|
||||
file_pattern: 'content/*' # Only commit changes in content directory
|
||||
commit_user_name: "GitHub Actions Bot"
|
||||
commit_user_email: "actions@github.com"
|
||||
commit_user_email: "actions@github.com"
|
||||
|
||||
Reference in New Issue
Block a user