From bd0d9f2cbe5abbbd3826f028d7ed47c1b0440ba6 Mon Sep 17 00:00:00 2001 From: pavlov346346-source Date: Fri, 11 Sep 2026 14:55:20 +0300 Subject: [PATCH] ci: publish main to production immediately during active development --- .github/workflows/promote-production.yml | 29 +++++------------------- 1 file changed, 6 insertions(+), 23 deletions(-) diff --git a/.github/workflows/promote-production.yml b/.github/workflows/promote-production.yml index 00182c7..8ec3684 100644 --- a/.github/workflows/promote-production.yml +++ b/.github/workflows/promote-production.yml @@ -1,44 +1,27 @@ -name: Caterium Promote Production +name: Caterium Direct Production on: - workflow_run: - workflows: ["Caterium QA"] - types: [completed] + push: + branches: [main] permissions: contents: write concurrency: group: caterium-production-promotion - cancel-in-progress: false + cancel-in-progress: true jobs: promote: - if: >- - ${{ github.event.workflow_run.conclusion == 'success' && - github.event.workflow_run.event == 'push' && - github.event.workflow_run.head_branch == 'main' }} runs-on: ubuntu-latest steps: - - name: Checkout verified main + - name: Checkout current main uses: actions/checkout@v4 with: ref: main fetch-depth: 0 - - name: Verify promoted commit - shell: bash - run: | - set -euo pipefail - expected="${{ github.event.workflow_run.head_sha }}" - actual="$(git rev-parse HEAD)" - if [ "$actual" != "$expected" ]; then - echo "Refusing promotion: main moved after the verified QA run." - echo "verified=$expected current=$actual" - exit 1 - fi - - - name: Promote to production branch + - name: Publish immediately to production branch shell: bash run: | set -euo pipefail