Skip to content

Commit fd03bc1

Browse files
committed
feat: git push job in action file
1 parent a6bfb94 commit fd03bc1

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/workflows/api-spec-merger.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,21 @@ jobs:
3131
run: |
3232
git config --local user.email "[email protected]"
3333
git config --local user.name "GitHub Action"
34-
35-
git add docs/api-docs/
34+
35+
# Fetch the target branch so Git knows about it
36+
git fetch origin gh-pages-test
37+
38+
# Switch to it
39+
git checkout gh-pages-test
40+
41+
# Copy generated docs
42+
git add docs/api-docs/ specs/swagger/openapi.html specs/swagger/openapi.yaml
3643
3744
if git diff --staged --quiet; then
3845
echo "✅ No changes to commit"
3946
else
4047
git commit -m "📄 Update API documentation"
4148
git push origin gh-pages-test
42-
echo "🚀 Documentation pushed to gh-pages branch!"
49+
echo "🚀 Documentation pushed to gh-pages-test branch!"
4350
fi
51+

specs/resourceRecommendation/ClusterResourceRecommendation.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.1.0
22
info:
33
title: Resource Recommender
44
description: Analyzes the history of resource usage (such as CPU and memory) for Kubernetes workloads in a specific cluster and generates data-backed recommendations for optimal resource allocation.
5-
version: 0.0.1
5+
version: 0.0.2
66
servers:
77
- url: http://localhost:8080/orchestrator
88
description: Devtron API Server

0 commit comments

Comments
 (0)