Skip to content

Commit 5166805

Browse files
committed
Parse aws-kotlin-repo-tools version from libs.versions.toml
1 parent 82dda2d commit 5166805

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,19 @@ description: >
55
runs:
66
using: composite
77
steps:
8-
- name: Checkout tools
8+
- name: Extract aws-kotlin-repo-tools version
9+
working-directory: ./smithy-kotlin
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+
15+
- name: Checkout aws-kotlin-repo-tools
916
uses: actions/checkout@v4
1017
with:
1118
path: 'aws-kotlin-repo-tools'
1219
repository: 'awslabs/aws-kotlin-repo-tools'
13-
ref: 'kn-main'
20+
ref: ${{ env.aws_kotlin_repo_tools_version }}
1421
sparse-checkout: |
1522
.github
1623

0 commit comments

Comments
 (0)