mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
fix: git message
This commit is contained in:
23
.github/workflows/docs_bundle.yml
vendored
23
.github/workflows/docs_bundle.yml
vendored
@@ -52,22 +52,29 @@ jobs:
|
||||
run: |
|
||||
# Check if there are file changes
|
||||
if [[ -n "$(git status --porcelain)" ]]; then
|
||||
FIXED_COMMIT_SUBJECT="Docs: Automated documentation updates"
|
||||
|
||||
COMMIT_DESCRIPTION=""
|
||||
FINAL_COMMIT_SUBJECT=""
|
||||
if [[ -n "${{ steps.doc-tools.outputs.commit_message }}" ]]; then
|
||||
COMMIT_DESCRIPTION="${{ steps.doc-tools.outputs.commit_message }}"
|
||||
FINAL_COMMIT_SUBJECT="${{ steps.doc-tools.outputs.commit_message }}"
|
||||
else
|
||||
COMMIT_DESCRIPTION="Automated processing of documentation files."
|
||||
FINAL_COMMIT_SUBJECT="Docs: Automated documentation updates" # Default subject if script provides none
|
||||
fi
|
||||
|
||||
FINAL_COMMIT_BODY=""
|
||||
if [[ -n "${{ steps.doc-tools.outputs.detailed_message }}" ]]; then
|
||||
FINAL_COMMIT_BODY="${{ steps.doc-tools.outputs.detailed_message }}"
|
||||
else
|
||||
FINAL_COMMIT_BODY="No detailed information provided by the script." # Default body if script provides none
|
||||
fi
|
||||
|
||||
git config --local user.email "88554920+alterxyz@users.noreply.github.com"
|
||||
git config --local user.name "alterxyz"
|
||||
git add .
|
||||
git commit -m "$FIXED_COMMIT_SUBJECT" -m "$COMMIT_DESCRIPTION" || echo "No changes to commit"
|
||||
# Use the subject from script's commit_message and body from script's detailed_message
|
||||
git commit -m "$FINAL_COMMIT_SUBJECT" -m "$FINAL_COMMIT_BODY" || echo "No changes to commit"
|
||||
git push
|
||||
echo "Changes committed with subject: $FIXED_COMMIT_SUBJECT"
|
||||
echo "Description: $COMMIT_DESCRIPTION"
|
||||
echo "Changes committed with subject: $FINAL_COMMIT_SUBJECT"
|
||||
echo "Description:"
|
||||
echo "$FINAL_COMMIT_BODY"
|
||||
else
|
||||
echo "No file changes, skipping commit"
|
||||
fi
|
||||
|
||||
@@ -1,26 +1,3 @@
|
||||
# 测试
|
||||
|
||||
hello, 这是一个测试. 我们随后更新 frontmatter.
|
||||
|
||||
{/*
|
||||
Contributing Section
|
||||
DO NOT edit this section!
|
||||
It will be automatically generated by the script.
|
||||
*/}
|
||||
|
||||
<CardGroup cols="2">
|
||||
<Card
|
||||
title="编辑此页面"
|
||||
icon="pen-to-square"
|
||||
href="https://github.com/langgenius/dify-docs-mintlify/edit/main/plugin_dev_zh/test.mdx"
|
||||
>
|
||||
通过直接提交修改来帮助改进文档内容
|
||||
</Card>
|
||||
<Card
|
||||
title="提交问题"
|
||||
icon="github"
|
||||
href="https://github.com/langgenius/dify-docs-mintlify/issues/new?title=文档问题%3A%20&body=%23%23%20问题描述%0A%3C%21--%20请简要描述您发现的问题%20--%3E%0A%0A%23%23%20页面链接%0Ahttps%3A%2F%2Fgithub.com%2Flanggenius%2Fdify-docs-mintlify%2Fblob%2Fmain%2Fplugin_dev_zh%2Ftest.mdx%0A%0A%23%23%20建议修改%0A%3C%21--%20如果有具体的修改建议,请在此说明%20--%3E%0A%0A%3C%21--%20感谢您对文档质量的关注!%20--%3E"
|
||||
>
|
||||
发现错误或有改进建议?请提交问题反馈
|
||||
</Card>
|
||||
</CardGroup>
|
||||
hello, 这是一个测试. 我们随后更新 frontmatter,
|
||||
@@ -20,7 +20,7 @@ def set_github_output(name, value):
|
||||
print(f"[GitHub Output] {name}={value}")
|
||||
|
||||
def main():
|
||||
total_message = "Details:\n"
|
||||
total_message = " \n"
|
||||
success_count = 0
|
||||
error_count = 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user