From 9dab80ac3a32b23119aa150afbb21bb5cdb904da Mon Sep 17 00:00:00 2001 From: Nubenetes Bot Date: Sat, 13 Jun 2026 20:37:54 +0200 Subject: [PATCH] feat(automation): add automated PR creation from develop to master --- .github/workflows/04.1.agentic_v2_publish.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/04.1.agentic_v2_publish.yml b/.github/workflows/04.1.agentic_v2_publish.yml index 5453f8c2..8f13708a 100644 --- a/.github/workflows/04.1.agentic_v2_publish.yml +++ b/.github/workflows/04.1.agentic_v2_publish.yml @@ -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