Skip to content

Commit

Permalink
Add cdk to update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
gvdongen committed May 3, 2024
1 parent cae14ca commit d500227
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ jobs:
- name: Bump sdk-typescript
if: github.event.inputs.sdkTypescriptVersion != ''
run: ./.tools/update_node_examples.sh ${{ inputs.sdkTypescriptVersion }}
- name: Bump cdk
if: github.event.inputs.cdkVersion != ''
run: ./.tools/update_cdk_examples.sh ${{ inputs.cdkVersion }}
- name: Run Node tests
if: github.event.inputs.sdkTypescriptVersion != ''
run: ./.tools/run_node_tests.sh
Expand Down
12 changes: 12 additions & 0 deletions .tools/update_cdk_examples.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

NEW_VERSION=$1
SELF_PATH=${BASH_SOURCE[0]:-"$(command -v -- "$0")"}
PROJECT_ROOT="$(dirname "$SELF_PATH")/.."

function bump_cdk() {
npm --prefix $1 install @restatedev/restate-cdk@$NEW_VERSION
}

bump_cdk $PROJECT_ROOT/templates/kotlin-gradle-lambda-cdk
bump_cdk $PROJECT_ROOT/templates/typescript-lambda-cdk

0 comments on commit d500227

Please sign in to comment.