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
35 changes: 35 additions & 0 deletions .github/workflows/clddx-agent-merge-hook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: clddx-agent merge hook

on:
pull_request:
types: [closed]

permissions: {}

jobs:
notify:
if: github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'releasecandidate/') &&
contains(toJson(github.event.pull_request.labels.*.name), '"agent:')
runs-on: ubuntu-latest
steps:
- env:
GH_TOKEN: ${{ secrets.CLDDX_AGENT_PAT }}
REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
MERGE_SHA: ${{ github.event.pull_request.merge_commit_sha }}
LABELS: ${{ toJson(github.event.pull_request.labels) }}
run: |
# Send the body as raw JSON (`--input -`), NOT `-f client_payload[...]`.
# `-f` sends every field as a string, which would make `labels` a JSON
# *string* rather than an array — the runner's label routing reads
# `.labels[].name`, so a string makes every release task silently miss.
jq -n \
--arg repo "$REPO" \
--arg pr_number "$PR_NUMBER" \
--arg merge_sha "$MERGE_SHA" \
--argjson labels "$LABELS" \
'{event_type:"pull-request-merged",
client_payload:{repo:$repo, pr_number:$pr_number,
merge_sha:$merge_sha, labels:$labels}}' \
| gh api repos/temporalio/clddx-agent/dispatches --input -
24 changes: 24 additions & 0 deletions .github/workflows/dispatch-clddx-agent-rc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Dispatch clddx-agent on RC branch

on:
push:
branches: ['releasecandidate/**']

permissions: {}

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Dispatch clddx-agent
env:
GH_TOKEN: ${{ secrets.CLDDX_AGENT_PAT }}
RC_BRANCH: ${{ github.ref_name }}
SDK_SHA: ${{ github.sha }}
run: |
new_sdk="${RC_BRANCH#releasecandidate/}" # releasecandidate/v0.1.1 -> v0.1.1
gh api repos/temporalio/clddx-agent/dispatches \
-f event_type=cloud-sdk-go-rc \
-f client_payload[new_sdk]="$new_sdk" \
-f client_payload[rc_branch]="$RC_BRANCH" \
-f client_payload[sdk_sha]="$SDK_SHA"
31 changes: 18 additions & 13 deletions api/region/v1/message.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cloudclient/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const (
authorizationBearer = "Bearer"
temporalCloudAPIVersionHeader = "temporal-cloud-api-version"

sdkVersion = "0.14.0"
defaultAPIVersion = "v0.17.0"
sdkVersion = "0.14.1"
defaultAPIVersion = "v0.17.1"
)

func DefaultAPIVersion() string {
Expand Down
Loading