Skip to content

Commit aeae4d7

Browse files
authored
Fix release workflow (#390)
1 parent c90b5cb commit aeae4d7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/scripts/update-version.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash -e
2+
3+
version=$1
4+
5+
sed -Ei "s/val snapshot = true/val snapshot = false/" build.gradle.kts
6+
7+
sed -Ei "1 s/(Comparing source compatibility of [a-z-]+)-[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)?.jar/\1-$version.jar/" docs/apidiffs/current_vs_latest/*.txt

.github/workflows/prepare-release-branch.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
echo "RELEASE_BRANCH_NAME=$release_branch_name" >> $GITHUB_ENV
5353
5454
- name: Update version
55-
run: sed -Ei "s/val snapshot = true/val snapshot = false/" build.gradle.kts
55+
run: .github/scripts/update-version.sh $VERSION
5656

5757
- name: Update the change log with the approximate release date
5858
run: |

0 commit comments

Comments
 (0)