diff --git a/.gitea/workflows/confluence-sync.yaml b/.gitea/workflows/confluence-sync-docker.yaml similarity index 98% rename from .gitea/workflows/confluence-sync.yaml rename to .gitea/workflows/confluence-sync-docker.yaml index 6506148..5d2da00 100644 --- a/.gitea/workflows/confluence-sync.yaml +++ b/.gitea/workflows/confluence-sync-docker.yaml @@ -1,7 +1,7 @@ name: Publish to Confluence on: push: - branches: [ master ] + branches: [ test ] # paths: # - '**' # - '!.gitignore' @@ -13,7 +13,6 @@ on: env: SEPARATOR: "," # 定义多文件分割符 START_PREFIX: "/g' $temp_path + # path 替换 + # sed -i -E 's/(.*\!\[.*\]\([ \t]*([a-zA-Z]\:)?(\.*(\/|\\))?([^:\r\n\t\!]*\.[a-zA-Z]+)[ \t]*\))([ ]*<\!\-\-[ \t]*width=[0-9]*[ \t]*\-\->)*/\1/g' $temp_path + # url 替换 + sed -i -E 's/(.*\!\[.*\]\([ \t]*(http(s)?:\/\/)([^:\r\n\t\!]*(\.[a-zA-Z]+)?)[ \t]*\))([ ]*<\!\-\-[ \t]*width=[0-9]*[ \t]*\-\->)*/\1/g' $temp_path + # 不支持的代码块替换 + sed -i -E 's/(.*)(```(dockerfile|json|toml|properties))(.*)/\1```shell\4/g' $temp_path + # 标题添加锚点 + sed -i -E 's/([#]+[ ]+)(.*)/\1\2 :anchor(\2):/g' $temp_path + sed -i -E "s@(\[.*\])(\(#)(.*)(\))@\1\2id-$(echo $temp_filename | tr -d '-')-\3\4@g" $temp_path + # 构建及发布 + /usr/local/programs/gitea/gitea_runner_host/mark --ci --debug --trace --include-path $(pwd) -p $MARK_PASS -b $MARK_URL -f $temp_path || exit 1; + else + echo "$temp_path not config metadata info, ignore file" + fi + done \ No newline at end of file diff --git a/发版/2025/20250614-Lazada联调对接发布.md b/发版/2025/20250614-Lazada联调对接发布.md index b923795..05771df 100644 --- a/发版/2025/20250614-Lazada联调对接发布.md +++ b/发版/2025/20250614-Lazada联调对接发布.md @@ -106,4 +106,3 @@ qifu: - lazada联调问题修复 - 新员工入职信息发送 -