From ce8fe0b1427d3abf8b09f9ac60b50ff8601db274 Mon Sep 17 00:00:00 2001 From: Johannes du Plessis Date: Fri, 8 May 2026 18:15:26 -0700 Subject: [PATCH] ci: nightly promote of main to prod for LangGraph deploys (#1285) Adds a scheduled workflow that force-pushes main onto a prod branch at 08:00 UTC (midnight PST / 1am PDT). The LangGraph deployment will track prod instead of main, so routine merges no longer trigger redeploys that cancel in-flight 30-minute coding runs. workflow_dispatch is retained for hotfixes that need to ship immediately. --- .github/workflows/promote_main_to_prod.yml | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/promote_main_to_prod.yml diff --git a/.github/workflows/promote_main_to_prod.yml b/.github/workflows/promote_main_to_prod.yml new file mode 100644 index 00000000..46574f8c --- /dev/null +++ b/.github/workflows/promote_main_to_prod.yml @@ -0,0 +1,25 @@ +name: Promote main to prod + +permissions: + contents: write + +on: + schedule: + - cron: "0 8 * * *" + workflow_dispatch: + +concurrency: + group: promote-main-to-prod + cancel-in-progress: false + +jobs: + promote: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v6 + with: + ref: main + fetch-depth: 0 + - name: Force-push main to prod + run: | + git push --force origin HEAD:refs/heads/prod