From bd3dca1446c2d30c0840a8b86b96e59ccf434815 Mon Sep 17 00:00:00 2001 From: Kazik Pogoda Date: Thu, 29 Aug 2024 20:24:23 +0200 Subject: [PATCH] github action build_release another attempt to fix release process with README.md update (#13) --- .github/workflows/build-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index be664c6..f59b813 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -36,7 +36,7 @@ jobs: ORG_GRADLE_PROJECT_sonatypeUser: ${{ secrets.SONATYPE_USER }} ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} - name: Switch to branch HEAD - run: git switch - + run: git checkout $(git branch --contains ${{ github.event.release.tag_name }}) - name: Update README run: sed -i 's/com\.xemantic\.kotlin:xemantic-kotlin-swing-dsl-\(core\|test\):[0-9]\+\(\.[0-9]\+\)*\>/com.xemantic.kotlin:xemantic-kotlin-swing-dsl-\1:${VERSION}/g' README.md - name: Commit README