Skip to content

Commit

Permalink
Update gradle plugin upgrade workflow (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
hpmellema authored Aug 31, 2023
1 parent c85ee25 commit 514b0a9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/update-smithy-gradle-plugin-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,20 @@ jobs:
git config --global user.email "[email protected]"
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: |
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
smithyVersion=1.37.0
smithyGradleVersion=0.7.0
smithyGradleVersion=0.8.0

0 comments on commit 514b0a9

Please sign in to comment.