Skip to content

Commit fbab477

Browse files
committed
Revert "Fix syntax issues"
This reverts commit 7c5f3d5.
1 parent eaf4b65 commit fbab477

1 file changed

Lines changed: 36 additions & 3 deletions

File tree

.github/workflows/generation.yml

Lines changed: 36 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,14 @@ jobs:
744744
git status --porcelain | ForEach-Object { Write-Host " $_" }
745745
746746
# Commit with detailed message
747-
$commitMessage = "APIGenerator workflow results - $timestamp`n`n- Generated API documentation from latest repository builds`n- Workflow run: ${{ github.run_number }}`n- Triggered by: ${{ github.event_name }}`n- Repository count: Built from multiple repositories in parallel"
747+
$commitMessage = @"
748+
APIGenerator workflow results - $timestamp
749+
750+
- Generated API documentation from latest repository builds
751+
- Workflow run: ${{ github.run_number }}
752+
- Triggered by: ${{ github.event_name }}
753+
- Repository count: Built from multiple repositories in parallel
754+
"@
748755
749756
git commit -m $commitMessage
750757
Write-Host "✅ Committed changes successfully"
@@ -786,13 +793,39 @@ jobs:
786793

787794
if ($existingPr -and $existingPr -ne "null" -and $existingPr -ne "") {
788795
Write-Host "📝 PR already exists (#$existingPr), adding update comment..."
789-
$prComment = "🤖 **Automated API Documentation Update**`n`n📅 **Updated:** $timestamp`n🔢 **Workflow Run:** #${{ github.run_number }}`n🚀 **Trigger:** ${{ github.event_name }}`n`nThe API documentation has been regenerated from the latest repository builds and pushed to this branch."
796+
$prComment = @"
797+
🤖 **Automated API Documentation Update**
798+
799+
📅 **Updated:** $timestamp
800+
🔢 **Workflow Run:** #${{ github.run_number }}
801+
🚀 **Trigger:** ${{ github.event_name }}
802+
803+
The API documentation has been regenerated from the latest repository builds and pushed to this branch.
804+
"@
790805
gh pr comment $existingPr --body $prComment
791806
Write-Host "✅ Comment added to existing PR #$existingPr"
792807
} else {
793808
Write-Host "📝 Creating new pull request..."
794809
$prTitle = "🤖 API Documentation Updates - $timestamp"
795-
$prBody = "## 🤖 Automated API Documentation Updates`n`nThis pull request contains automatically generated API documentation updates.`n`n### 📋 Details`n- **Generated:** $timestamp`n- **Workflow Run:** #${{ github.run_number }}`n- **Triggered by:** ${{ github.event_name }}`n- **Branch:** $branch_name`n`n### 🔄 What's Updated`n- API documentation regenerated from latest repository builds`n- Documentation processed with dependency-aware sequential building`n- All repositories with .sln files were built and processed`n`n### ✅ Ready for Review`nThis PR is ready for review and can be merged when approved."
810+
$prBody = @"
811+
## 🤖 Automated API Documentation Updates
812+
813+
This pull request contains automatically generated API documentation updates.
814+
815+
### 📋 Details
816+
- **Generated:** $timestamp
817+
- **Workflow Run:** #${{ github.run_number }}
818+
- **Triggered by:** ${{ github.event_name }}
819+
- **Branch:** ``$branch_name``
820+
821+
### 🔄 What's Updated
822+
- API documentation regenerated from latest repository builds
823+
- Documentation processed in parallel for improved performance
824+
- All repositories with .sln files were built and processed
825+
826+
### ✅ Ready for Review
827+
This PR is ready for review and can be merged when approved.
828+
"@
796829
797830
gh pr create --title $prTitle --body $prBody --head $branch_name --base main
798831
Write-Host "✅ Pull request created successfully"

0 commit comments

Comments
 (0)