From 2beec6b8a547d4dea0a90e24133c9e1304f26479 Mon Sep 17 00:00:00 2001 From: Imants Date: Tue, 1 Sep 2026 13:21:29 +0300 Subject: [PATCH] ci: sync the stable release into its beta branch on release Add a sync-beta job to the release workflow. On a published release it syncs the released branch into its beta branch (core into core-beta, pro into pro-beta): a clean merge is pushed directly, a conflict or a rejected push opens a pull request for manual resolution instead of failing. --- .github/workflows/release.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 58e2423cd..867325961 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -72,6 +72,28 @@ jobs: echo "::notice::Successfully dispatched core to pro sync" + sync-beta: + # Sync the stable release into its beta branch (core -> core-beta, pro -> pro-beta). + # Runs for both editions; pre-release tags are skipped by the downstream workflow. + runs-on: ubuntu-latest + steps: + - name: Dispatch release-to-beta sync workflow + env: + GH_TOKEN: ${{ secrets.CHANGELOG_PAT }} + run: | + echo "::notice::Dispatching release-to-beta sync for ${{ github.event.release.tag_name }}" + + if ! gh workflow run "sync-release-to-beta.yml" \ + --repo "codesnippetspro/.github-private" \ + --ref main \ + --field repo="${{ github.repository }}" \ + --field tag="${{ github.event.release.tag_name }}"; then + echo "::error::Failed to dispatch sync-release-to-beta.yml" + exit 1 + fi + + echo "::notice::Successfully dispatched release-to-beta sync" + deploy: needs: [build, upload] runs-on: ubuntu-latest