Skip to content
Merged
Show file tree
Hide file tree
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
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release SDK

on:
push:
branches: [main]

# contents:write is required for autotag-from-changelog to push tags.
permissions:
contents: write

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0

- uses: cockroachdb/actions/autotag-from-changelog@v0
id: autotag

# Dispatches an sdk-release event to ccloud-private. Requires a
# CCLOUD_PRIVATE_DISPATCH_PAT secret — a fine-grained PAT with
# contents:write on cockroachdb/ccloud-private, since GITHUB_TOKEN
# cannot trigger workflows in other repositories.
- name: Dispatch to ccloud-private
if: steps.autotag.outputs.tag-created == 'true'
env:
GH_TOKEN: ${{ secrets.CCLOUD_PRIVATE_DISPATCH_PAT }}
run: |
if [ -z "$GH_TOKEN" ]; then
echo "::warning::CCLOUD_PRIVATE_DISPATCH_PAT secret is not set. Skipping dispatch to ccloud-private for ${{ steps.autotag.outputs.tag }}."
exit 0
fi
gh api repos/cockroachdb/ccloud-private/dispatches \
-f event_type=sdk-release \
-f "client_payload[version]=${{ steps.autotag.outputs.tag }}"
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added

- Added release workflow that auto-tags from CHANGELOG and dispatches
sdk-release events to ccloud-private. Requires a `CCLOUD_PRIVATE_DISPATCH_PAT`
repository secret (fine-grained PAT with contents:write on
cockroachdb/ccloud-private) and a corresponding `repository_dispatch`
workflow in ccloud-private to handle the `sdk-release` event

## [6.10.0] - 2025-11-19

### Added
Expand Down
5 changes: 5 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CLAUDE.md

## GitHub Actions

- When writing or modifying GitHub Actions workflows, always look up the latest major version of each action before using it. Do not assume you know the current version.
Loading