diff --git a/.github/workflows/update-smithy-gradle-plugin-version.yml b/.github/workflows/update-smithy-gradle-plugin-version.yml index bc9863a..89d195a 100644 --- a/.github/workflows/update-smithy-gradle-plugin-version.yml +++ b/.github/workflows/update-smithy-gradle-plugin-version.yml @@ -39,13 +39,20 @@ jobs: git config --global user.email "github-aws-smithy-automation@amazon.com" git config --global user.name "Smithy Automation" - - name: Find and replace - id: replace-current-version + - name: Find and replace gradle version in properties files + id: replace-current-version-properties if: steps.update-check.outputs.update-required == 'true' run: | find . -type f -name 'gradle.properties' \ -exec sed -i "s|smithyGradleVersion=${{ steps.get-current.outputs.smithyGradleVersion }}|smithyGradleVersion=${{ steps.fetch-latest.outputs.latestSmithyGradle }}|g" {} \; + - name: Find and replace gradle plugin versions in build files + id: sync-plugin-version + if: steps.update-check.outputs.update-required == 'true' + run: | + find . -type f -name 'build.gradle.kts' \ + -exec sed -i '' "s/\(id(\"software\.amazon\.smithy\.gradle\.smithy-\([[:lower:]]*\)\")\.version(\"\)\([[:digit:]\.]*\)\")/\\1${{ steps.fetch-latest.outputs.latestSmithyGradle }}\")/" {} \; + - name: Create PR if: steps.update-check.outputs.update-required == 'true' run: | diff --git a/gradle.properties b/gradle.properties index 544c84c..1274438 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,2 @@ smithyVersion=1.37.0 -smithyGradleVersion=0.7.0 +smithyGradleVersion=0.8.0