diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index a5bd82d..62ea961 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -47,12 +47,20 @@ jobs: ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }} + - name: Update README.md in place + shell: bash + run: | + VERSION="${{ steps.version-extract.outputs.version_name }}" + sed -i '' -E "s|implementation\(\"com\.bngdev\.formatk:[^\"]*\"\)|implementation(\"com.bngdev.formatk:${VERSION}\")|g" README.md + sed -i '' -E "s|implementation 'com\.bngdev\.formatk:[^']*'|implementation 'com.bngdev.formatk:${VERSION}'|g" README.md - name: Commit version bump + run: | git config user.name "CI Bot" git config user.email "ci-bot@kkalisz.com" git add gradle.properties - + git add README.md + git commit -m "Bump version to ${{ steps.version-extract.outputs.version_name }} for branch ${{ steps.branch-names.outputs.current_branch }} [skip ci]" git push origin HEAD diff --git a/README.md b/README.md index 70dcdc3..6d6aa8f 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ FormatK supports the following Kotlin Multiplatform targets: ```kotlin dependencies { - implementation("com.bngdev.formatk:") + implementation("com.bngdev.formatk:0.0.1") } ``` @@ -38,7 +38,7 @@ dependencies { ```groovy dependencies { - implementation 'com.bngdev.formatk:' + implementation 'com.bngdev.formatk:0.0.1' } ```