Skip to content

Commit 07e8d43

Browse files
authored
Fix prepare-release-branch.sh interaction with update-version.sh (#7404)
1 parent d37f6bd commit 07e8d43

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/scripts/update-version.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash -e
22

33
version=$1
4+
versionWithSnapshot="$version-SNAPSHOT"
45

56
sed -Ei "s/[0-9]+\.[0-9]+\.[0-9]+/$version/" version.gradle.kts
67

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
8+
sed -Ei "1 s/(Comparing source compatibility of [a-z-]+)-[0-9]+\.[0-9]+\.[0-9]+(-SNAPSHOT)?.jar/\1-$versionWithSnapshot.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
@@ -100,7 +100,7 @@ jobs:
100100
echo "unexpected version: $version"
101101
exit 1
102102
fi
103-
echo "NEXT_VERSION=${next_version}-SNAPSHOT" >> $GITHUB_ENV
103+
echo "NEXT_VERSION=${next_version}" >> $GITHUB_ENV
104104
echo "VERSION=$version" >> $GITHUB_ENV
105105
106106
- name: Update version

0 commit comments

Comments
 (0)