Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

Docs nightly gen edits (#62404)

Jeff Bruemmer5583aa331c41
diff --git a/.github/workflows/docs-master-generate.yml b/.github/workflows/docs-master-generate.yml
index aa0316400ae..4a0867d7e3f 100644
--- a/.github/workflows/docs-master-generate.yml
+++ b/.github/workflows/docs-master-generate.yml
@@ -86,27 +86,31 @@ jobs:
# Count total changes for conditional message
TOTAL_CHANGES=$(git diff --name-only HEAD~1 docs/ 2>/dev/null | wc -l || echo "0")
+ # Create PR body content
+ PR_BODY="This PR contains automatically generated documentation updates.
+
+ ## Changes detected
+ The following documentation files were updated:
+ $CHANGES_SUMMARY
+ $([ "$TOTAL_CHANGES" -gt 10 ] && echo "- ... and more files")
+
+ ## Generation commands
+ Documentation was generated using:
+ - \`clojure -M:ee:doc environment-variables-documentation\`
+ - \`clojure -M:ee:doc config-template\`
+ - \`clojure -M:ee:doc api-documentation\`
+
+ Please review the changes and merge if they look correct."
+
# Retry PR creation up to 3 times
for i in {1..3}; do
if gh pr create \
--base master \
--head ${{ steps.commit_and_push.outputs.branch_name }} \
- --title "Update generated docs (master)" \
- --body "API, config template, and environment variable doc updates.
-
-## Changes made
-$CHANGES_SUMMARY
-$([ "$TOTAL_CHANGES" -gt 10 ] && echo "- ... and more files")
-
-## Generation commands
-Documentation was generated using:
-- \`clojure -M:ee:doc environment-variables-documentation\`
-- \`clojure -M:ee:doc config-template\`
-- \`clojure -M:ee:doc api-documentation\`
-
-Review the changes before merging." \
- --label "Type:Documentation" \
- --label "no-backport"; then
+ --title "Auto-update documentation from nightly build" \
+ --body "$PR_BODY" \
+ --label "Type:Documentation" \
+ --label "no-backport"; then
echo "PR created successfully on attempt $i"
break
else
diff --git a/.github/workflows/docs-release-generate.yml b/.github/workflows/docs-release-generate.yml
index 2423e0463ef..614956b80e1 100644
--- a/.github/workflows/docs-release-generate.yml
+++ b/.github/workflows/docs-release-generate.yml
@@ -91,27 +91,31 @@ jobs:
# Count total changes for conditional message
TOTAL_CHANGES=$(git diff --name-only HEAD~1 docs/ 2>/dev/null | wc -l || echo "0")
+ # Create PR body content
+ PR_BODY="This PR contains automatically generated documentation updates.
+
+ ## Changes detected
+ The following documentation files were updated:
+ $CHANGES_SUMMARY
+ $([ "$TOTAL_CHANGES" -gt 10 ] && echo "- ... and more files")
+
+ ## Generation commands
+ Documentation was generated using:
+ - \`clojure -M:ee:doc environment-variables-documentation\`
+ - \`clojure -M:ee:doc config-template\`
+ - \`clojure -M:ee:doc api-documentation\`
+
+ Please review the changes and merge if they look correct."
+
# Retry PR creation up to 3 times
for i in {1..3}; do
if gh pr create \
--base ${{ env.RELEASE_BRANCH }} \
--head ${{ steps.commit_and_push.outputs.branch_name }} \
- --title "Update generated docs (${{ env.RELEASE_BRANCH }})" \
- --body "API, config template, and environment variable doc updates.
-
-## Changes made
-$CHANGES_SUMMARY
-$([ "$TOTAL_CHANGES" -gt 10 ] && echo "- ... and more files")
-
-## Generation commands
-Documentation was generated using:
-- \`clojure -M:ee:doc environment-variables-documentation\`
-- \`clojure -M:ee:doc config-template\`
-- \`clojure -M:ee:doc api-documentation\`
-
-Review the changes before merging." \
- --label "Type:Documentation" \
- --label "no-backport"; then
+ --title "Auto-update documentation for ${{ env.RELEASE_BRANCH }}" \
+ --body "$PR_BODY" \
+ --label "Type:Documentation" \
+ --label "no-backport"; then
echo "PR created successfully on attempt $i"
break
else
@@ -137,7 +141,10 @@ Review the changes before merging." \
echo "## ✅ Documentation Updated Successfully" >> $GITHUB_STEP_SUMMARY
echo "- Created branch: \`${{ steps.commit_and_push.outputs.branch_name }}\`" >> $GITHUB_STEP_SUMMARY
echo "- Created PR for review targeting ${{ env.RELEASE_BRANCH }}" >> $GITHUB_STEP_SUMMARY
- else
+ elif [ "${{ steps.check_changes.outputs.changes }}" == "false" ]; then
echo "## ℹ️ No Documentation Changes" >> $GITHUB_STEP_SUMMARY
echo "- All documentation is up to date" >> $GITHUB_STEP_SUMMARY
+ else
+ echo "## ⚠️ Workflow Summary Unavailable" >> $GITHUB_STEP_SUMMARY
+ echo "- Could not determine documentation change status" >> $GITHUB_STEP_SUMMARY
fi