Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading