Skip to content

Commit

Permalink
Parse aws-kotlin-repo-tools version from libs.versions.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
lauzadis committed Nov 19, 2024
1 parent 82dda2d commit 5166805
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/actions/setup-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ description: >
runs:
using: composite
steps:
- name: Checkout tools
- name: Extract aws-kotlin-repo-tools version
working-directory: ./smithy-kotlin
run: |
export AWS_KOTLIN_REPO_TOOLS_VERSION=$(grep '^aws-kotlin-repo-tools-version' ./gradle/libs.versions.toml | sed -E 's/.*= "(.*)"/\1/')
echo "Using aws-kotlin-repo-tools version $AWS_KOTLIN_REPO_TOOLS_VERSION"
echo "aws_kotlin_repo_tools_version=$AWS_KOTLIN_REPO_TOOLS_VERSION" >> $GITHUB_ENV
- name: Checkout aws-kotlin-repo-tools
uses: actions/checkout@v4
with:
path: 'aws-kotlin-repo-tools'
repository: 'awslabs/aws-kotlin-repo-tools'
ref: 'kn-main'
ref: ${{ env.aws_kotlin_repo_tools_version }}
sparse-checkout: |
.github
Expand Down

0 comments on commit 5166805

Please sign in to comment.