From dd4df738f86dda171285ea7fbc3c0d2d765d82ff Mon Sep 17 00:00:00 2001 From: liuxiaohua Date: Thu, 26 Jun 2025 14:33:34 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20[2025-06-26]=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...-sync.yaml => confluence-sync-docker.yaml} | 3 +- .gitea/workflows/confluence-sync-host.yaml | 101 ++++++++++++++++++ 发版/2025/20250614-Lazada联调对接发布.md | 1 - 3 files changed, 102 insertions(+), 3 deletions(-) rename .gitea/workflows/{confluence-sync.yaml => confluence-sync-docker.yaml} (98%) create mode 100644 .gitea/workflows/confluence-sync-host.yaml 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联调问题修复 - 新员工入职信息发送 -