Readme CI
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 12s
All checks were successful
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Successful in 12s
This commit is contained in:
@@ -72,12 +72,9 @@ jobs:
|
||||
echo "🌿 Creating branch: $BRANCH_NAME"
|
||||
git checkout -b "$BRANCH_NAME"
|
||||
git add README.md
|
||||
git commit -m "Auto-update README with current k8s applications
|
||||
|
||||
Generated by CI/CD workflow on $(date +%Y-%m-%d\ %H:%M:%S)
|
||||
|
||||
This PR updates the README.md file with the current list of applications
|
||||
found in the k8s/ directory structure."
|
||||
git commit -m "Auto-update README with current k8s applications" \
|
||||
-m "Generated by CI/CD workflow on $(date +%Y-%m-%d\ %H:%M:%S)" \
|
||||
-m "This PR updates the README.md file with the current list of applications found in the k8s/ directory structure."
|
||||
|
||||
# Push branch to remote
|
||||
echo "📤 Pushing branch to remote..."
|
||||
@@ -87,29 +84,22 @@ found in the k8s/ directory structure."
|
||||
echo "🔀 Creating Pull Request..."
|
||||
|
||||
PR_TITLE="Auto-update README with k8s applications"
|
||||
PR_BODY="This PR automatically updates README.md based on the current k8s/ directory structure.
|
||||
|
||||
## Changes
|
||||
- Updated application list in README.md
|
||||
- Applications are now synced with k8s/ folders
|
||||
|
||||
## Review
|
||||
Please review and merge if everything looks correct.
|
||||
|
||||
---
|
||||
🤖 This PR was automatically generated by CI/CD workflow
|
||||
⏰ Generated at: $(date +%Y-%m-%d\ %H:%M:%S)"
|
||||
# Create PR body
|
||||
cat > /tmp/pr_body.json <<EOF
|
||||
{
|
||||
"title": "$PR_TITLE",
|
||||
"body": "This PR automatically updates README.md based on the current k8s/ directory structure.\n\n## Changes\n- Updated application list in README.md\n- Applications are now synced with k8s/ folders\n\n## Review\nPlease review and merge if everything looks correct.\n\n---\n🤖 This PR was automatically generated by CI/CD workflow\n⏰ Generated at: $(date '+%Y-%m-%d %H:%M:%S')",
|
||||
"head": "$BRANCH_NAME",
|
||||
"base": "main"
|
||||
}
|
||||
EOF
|
||||
|
||||
# Create PR via API
|
||||
RESPONSE=$(curl -s -X POST \
|
||||
-H "Authorization: token $GITEA_TOKEN" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"title\": \"$PR_TITLE\",
|
||||
\"body\": \"$PR_BODY\",
|
||||
\"head\": \"$BRANCH_NAME\",
|
||||
\"base\": \"main\"
|
||||
}" \
|
||||
-d @/tmp/pr_body.json \
|
||||
"$GITEA_URL/api/v1/repos/$GITEA_OWNER/$GITEA_REPO/pulls")
|
||||
|
||||
# Extract PR number and URL from response
|
||||
|
||||
Reference in New Issue
Block a user