We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e1bf9a commit a876596Copy full SHA for a876596
.github/workflows/auto_update_release_notes.yml
@@ -59,8 +59,24 @@ jobs:
59
run: |
60
mkdir -p ./feishu2md_output
61
cd feishu2md_output
62
+
63
../bin/feishu2md download --batch ${{ secrets.FEISHU_RELEASE_NOTES_FOLDER_URL }}
64
ls -al
65
66
+ # 去除 markdown 文档文件名中开头和结尾的空白字符
67
+ echo "Trimming markdown file names"
68
+ for file in *.md; do
69
+ if [[ -f "$file" ]]; then
70
+ new_name=$(echo "$file" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//')
71
+ if [[ "$file" != "$new_name" ]]; then
72
+ # 重命名,如果有重名文件,那就直接覆盖了
73
+ echo "→ Renaming '$file' to '$new_name'"
74
+ mv "$file" "$new_name"
75
+ fi
76
77
+ done
78
+ ls -al
79
80
cd ..
81
82
# Step 6: 使用仓库内的 ossutil 将刚才获取的图片上传到阿里云 oss 服务器
0 commit comments