Skip to content

Commit 2226da1

Browse files
luigi617luigi liu
andauthored
Add sdkVersion CI check (#1949)
* Add sdkVersion CI check * replace hardcoded version --------- Co-authored-by: luigi liu <luigiliu@amazon.com>
1 parent 848f704 commit 2226da1

2 files changed

Lines changed: 29 additions & 1 deletion

File tree

.github/actions/setup-build/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ description: >
55
runs:
66
using: composite
77
steps:
8+
- name: Extract aws-kotlin-repo-tools version
9+
shell: bash
10+
run: |
11+
export AWS_KOTLIN_REPO_TOOLS_VERSION=$(grep '^aws-kotlin-repo-tools-version' ./gradle/libs.versions.toml | sed -E 's/.*= "(.*)"/\1/')
12+
echo "Using aws-kotlin-repo-tools version $AWS_KOTLIN_REPO_TOOLS_VERSION"
13+
echo "aws_kotlin_repo_tools_version=$AWS_KOTLIN_REPO_TOOLS_VERSION" >> $GITHUB_ENV
14+
815
- name: Checkout tools
916
uses: actions/checkout@v4
1017
with:
1118
path: 'aws-kotlin-repo-tools'
1219
repository: 'aws/aws-kotlin-repo-tools'
13-
ref: '0.4.2'
20+
ref: ${{ env.aws_kotlin_repo_tools_version }}
1421
sparse-checkout: |
1522
.github
1623
- name: Checkout smithy-kotlin
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: SDK Version Check
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
pull_request:
8+
types: [opened, synchronize, reopened, labeled]
9+
branches:
10+
- main
11+
- '*-main'
12+
merge_group:
13+
types: [checks_requested]
14+
15+
jobs:
16+
sdk-version-check:
17+
runs-on: ubuntu-latest
18+
if: ${{ github.event_name != 'merge_group' }}
19+
steps:
20+
- name: Check sdkVersion
21+
uses: aws/aws-kotlin-repo-tools/.github/actions/sdk-version-check@main

0 commit comments

Comments
 (0)