Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ FormatK supports the following Kotlin Multiplatform targets:

```kotlin
dependencies {
implementation("com.bngdev.formatk:<VERSION>")
implementation("com.bngdev.formatk:0.0.1")
}
```

### Gradle (Groovy DSL)

```groovy
dependencies {
implementation 'com.bngdev.formatk:<VERSION>'
implementation 'com.bngdev.formatk:0.0.1'
}
```

Expand Down