From 148d3f19b37374206f3c0dba571ecc3e6c25735b Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:07:01 +0100 Subject: [PATCH 01/13] auto update readme md --- .github/workflows/bump_version.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index a5bd82d..361cd31 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -33,6 +33,7 @@ jobs: gradle_properties_location: "./gradle.properties" - name: Set up JDK 21 + if: false uses: actions/setup-java@v4 with: distribution: 'zulu' @@ -47,16 +48,23 @@ jobs: ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }} ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }} + - name: Update README.md in place + run: | + sed -i -E "s|(^[[:space:]]*implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\1${{ steps.version-extract.outputs.version_name }}\2|g" README.md + sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\1${{ steps.version-extract.outputs.version_name }}\2|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 - name: Create a Release + if: false uses: elgohr/Github-Release-Action@v5 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 2aae1c1495b31457d5250f4313562018ae6c2e10 Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:08:10 +0100 Subject: [PATCH 02/13] auto update readme md --- .github/workflows/bump_version.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 361cd31..a5f36f1 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -40,6 +40,7 @@ jobs: java-version: 21 - name: Publish to MavenCentral + if: false run: ./gradlew publishToMavenCentral --no-configuration-cache env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} From 68763c2569cd01d85de2c66c2e81156cd04b5b8b Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:13:19 +0100 Subject: [PATCH 03/13] auto update readme md --- .github/workflows/bump_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index a5f36f1..1f9cfb6 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -52,7 +52,7 @@ jobs: - name: Update README.md in place run: | sed -i -E "s|(^[[:space:]]*implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\1${{ steps.version-extract.outputs.version_name }}\2|g" README.md - sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\1${{ steps.version-extract.outputs.version_name }}\2|g" README.md + sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\1${{ steps.version-extract.outputs.version_name }}\2|g" README.md - name: Commit version bump run: | From 451ebda6e2492e369ea4f81e71cc35bb53833db1 Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:19:07 +0100 Subject: [PATCH 04/13] auto update readme md --- .github/workflows/bump_version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 1f9cfb6..4465695 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -51,8 +51,8 @@ jobs: - name: Update README.md in place run: | - sed -i -E "s|(^[[:space:]]*implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\1${{ steps.version-extract.outputs.version_name }}\2|g" README.md - sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\1${{ steps.version-extract.outputs.version_name }}\2|g" README.md + sed -i -E "s|(^[[:space:]]*implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md + sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md - name: Commit version bump run: | From 1ca280f9fbc601880f096be841f1f0f6ff18ef59 Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:22:40 +0100 Subject: [PATCH 05/13] auto update readme md --- .github/workflows/bump_version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 4465695..4958f9e 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -51,8 +51,8 @@ jobs: - name: Update README.md in place run: | - sed -i -E "s|(^[[:space:]]*implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md - sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md + sed -i -E "s|(^[[:space:]]*implementation\\(\\\"com\\.bngdev\\.formatk:)[^\"]*(\\\"\\))|\\10.0.1\\2|g" README.md + sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\\10.0.1\\2|g" README.md - name: Commit version bump run: | From 580629cfee795e0a824f38f5024729e5293bdfda Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:24:34 +0100 Subject: [PATCH 06/13] auto update readme md --- .github/workflows/bump_version.yml | 4 ++-- README.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 4958f9e..4465695 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -51,8 +51,8 @@ jobs: - name: Update README.md in place run: | - sed -i -E "s|(^[[:space:]]*implementation\\(\\\"com\\.bngdev\\.formatk:)[^\"]*(\\\"\\))|\\10.0.1\\2|g" README.md - sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\\10.0.1\\2|g" README.md + sed -i -E "s|(^[[:space:]]*implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md + sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md - name: Commit version bump run: | 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' } ``` From c7df91a169baa28422f0c72eebbbe8a93108d9c8 Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:32:31 +0100 Subject: [PATCH 07/13] auto update readme md --- .github/workflows/bump_version.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 4465695..b1aae67 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -51,8 +51,8 @@ jobs: - name: Update README.md in place run: | - sed -i -E "s|(^[[:space:]]*implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md - sed -i -E "s|(^[[:space:]]*implementation 'com\\.bngdev\\.formatk:)[^']*('|)|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md + sed -i -E "s|(implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md + sed -i -E "s|(implementation 'com\\.bngdev\\.formatk:)[^']*('|))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md - name: Commit version bump run: | From 794e4973176c6a9b5120a527f64986ba68071aa1 Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:36:28 +0100 Subject: [PATCH 08/13] auto update readme md --- .github/workflows/bump_version.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index b1aae67..46d9e4d 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -51,9 +51,8 @@ jobs: - name: Update README.md in place run: | - sed -i -E "s|(implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md - sed -i -E "s|(implementation 'com\\.bngdev\\.formatk:)[^']*('|))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md - + sed -i '' -E "s|(implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md + sed -i '' -E "s|(implementation 'com\\.bngdev\\.formatk:)[^']*('|))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md - name: Commit version bump run: | git config user.name "CI Bot" From 0ee6d1c07165281fb8d7946a10d7ce1fbfe86be4 Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:40:16 +0100 Subject: [PATCH 09/13] auto update readme md --- .github/workflows/bump_version.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 46d9e4d..814ed8a 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -53,6 +53,7 @@ jobs: run: | sed -i '' -E "s|(implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md sed -i '' -E "s|(implementation 'com\\.bngdev\\.formatk:)[^']*('|))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md + - name: Commit version bump run: | git config user.name "CI Bot" From ebf81f851da1ae989efe7d5d2877a6d819496ae5 Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:49:04 +0100 Subject: [PATCH 10/13] auto update readme md --- .github/workflows/bump_version.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 814ed8a..c401917 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -51,8 +51,9 @@ jobs: - name: Update README.md in place run: | - sed -i '' -E "s|(implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md - sed -i '' -E "s|(implementation 'com\\.bngdev\\.formatk:)[^']*('|))|\\1${{ steps.version-extract.outputs.version_name }}\\2|g" README.md + VERSION="${{ steps.version-extract.outputs.version_name }}" + sed -i '' -E "s|(implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${VERSION}\\2|g" README.md + sed -i '' -E "s|(implementation 'com\\.bngdev\\.formatk:)[^']*('|))|\\1${VERSION}\\2|g" README.md - name: Commit version bump run: | From cc63f1a24b337c4b37db6d689715a68de5b71118 Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:52:14 +0100 Subject: [PATCH 11/13] auto update readme md --- .github/workflows/bump_version.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index c401917..250e159 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -50,6 +50,7 @@ jobs: 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:)[^\"]*(\"\\))|\\1${VERSION}\\2|g" README.md From 76a023f537a903f92e050c0c23b55fe337e9211d Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 18:56:29 +0100 Subject: [PATCH 12/13] auto update readme md --- .github/workflows/bump_version.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 250e159..2781977 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -53,10 +53,10 @@ jobs: shell: bash run: | VERSION="${{ steps.version-extract.outputs.version_name }}" - sed -i '' -E "s|(implementation\\(\"com\\.bngdev\\.formatk:)[^\"]*(\"\\))|\\1${VERSION}\\2|g" README.md - sed -i '' -E "s|(implementation 'com\\.bngdev\\.formatk:)[^']*('|))|\\1${VERSION}\\2|g" README.md - + 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" From bd05e277a60649045837abc8434ec0d83b94f28d Mon Sep 17 00:00:00 2001 From: kamilkalisz Date: Sun, 16 Feb 2025 19:01:06 +0100 Subject: [PATCH 13/13] auto update readme md --- .github/workflows/bump_version.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/bump_version.yml b/.github/workflows/bump_version.yml index 2781977..62ea961 100644 --- a/.github/workflows/bump_version.yml +++ b/.github/workflows/bump_version.yml @@ -33,14 +33,12 @@ jobs: gradle_properties_location: "./gradle.properties" - name: Set up JDK 21 - if: false uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: 21 - name: Publish to MavenCentral - if: false run: ./gradlew publishToMavenCentral --no-configuration-cache env: ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.MAVEN_CENTRAL_USERNAME }} @@ -67,7 +65,6 @@ jobs: git push origin HEAD - name: Create a Release - if: false uses: elgohr/Github-Release-Action@v5 env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}