You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ "$old_version"!="$other_old_version" ]];then
12
+
echo"found version are not equal ($old_version != $other_old_version) ... aborting"
13
+
exit
14
+
fi
15
+
read -r -p "Enter new version [${old_version}]: " vin
16
+
new_version=${vin:-${old_version}}
17
+
18
+
echo""
19
+
echo"old : $old_version"
20
+
echo"new : $new_version"
21
+
read -r -p "Run update? [y/N]: " yn
22
+
go=${yn:-"n"}
23
+
if [ "${go,,}"!="y" ];then
24
+
echo"aborting"
25
+
exit
26
+
fi
27
+
28
+
# update to latest dev version (change update_versions.sh if you change this section)
29
+
sed -i "s/\(sigstoreJavaVersion.convention(\"\)$old_version/\1$new_version/" sigstore-gradle/sigstore-gradle-sign-base-plugin/src/main/kotlin/dev/sigstore/sign/SigstoreSignExtension.kt
30
+
sed -i "s/version=$old_version/version=$new_version/" gradle.properties
Copy file name to clipboardExpand all lines: scripts/update_versions.sh
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
#!/bin/bash
2
2
3
+
# change all versions in the repository after doing a release
4
+
3
5
# this script is simple and should work for most usecases, but it may break if we do weird things
4
6
set -Eeo pipefail
5
7
@@ -35,7 +37,7 @@ sed -i "s/\(dev.sigstore.sign\") version \"\)$previous_version/\1$release_versio
35
37
sed -i "s/\(sigstore.version.*\)$previous_version/\1$release_version/" examples/hello-world/build.gradle.kts
36
38
sed -i "s/\(<sigstore.version>\)$previous_version/\1$release_version/" examples/hello-world/pom.xml
37
39
38
-
# update to latest dev version
40
+
# update to latest dev version (change change_version.sh if you change this section)
39
41
sed -i "s/\(sigstoreJavaVersion.convention(\"\)$release_version/\1$next_version/" sigstore-gradle/sigstore-gradle-sign-base-plugin/src/main/kotlin/dev/sigstore/sign/SigstoreSignExtension.kt
40
42
sed -i "s/version=$release_version/version=$next_version/" gradle.properties
Copy file name to clipboardExpand all lines: sigstore-gradle/sigstore-gradle-sign-base-plugin/src/main/kotlin/dev/sigstore/sign/SigstoreSignExtension.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -46,7 +46,7 @@ abstract class SigstoreSignExtension(private val project: Project) {
0 commit comments