mirror of
https://github.com/nubenetes/awesome-kubernetes.git
synced 2026-07-12 09:51:00 +00:00
feat(automation): add automated PR creation from develop to master
This commit is contained in:
18
.github/workflows/04.1.agentic_v2_publish.yml
vendored
18
.github/workflows/04.1.agentic_v2_publish.yml
vendored
@@ -107,6 +107,24 @@ jobs:
|
||||
git push origin develop
|
||||
fi
|
||||
|
||||
- name: Create or Update Promotion PR to Master
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
# Check if a PR already exists
|
||||
PR_EXISTS=$(gh pr list --head develop --base master --json number --jq '.[0].number')
|
||||
|
||||
if [ -z "$PR_EXISTS" ]; then
|
||||
echo "Creating new PR from develop to master..."
|
||||
gh pr create \
|
||||
--base master \
|
||||
--head develop \
|
||||
--title "🚀 Release: Agentic V2 Portal Update" \
|
||||
--body "Automated promotion from develop to master. This PR includes updated V2 Elite portal content, AI-enriched metadata, and synchronized README metrics. Please review and merge to deploy to production."
|
||||
else
|
||||
echo "PR #$PR_EXISTS already exists. No action needed (it will auto-update with the push)."
|
||||
fi
|
||||
|
||||
- name: Upload Architecture and Decision Logs
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v7
|
||||
|
||||
Reference in New Issue
Block a user