File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -61,19 +61,26 @@ update_readme() {
61
61
current_sqlcipher_version=" $( grep ' \* SQLCipher' .github/README.md | cut -d ' *' -f 3) "
62
62
grdb_tag=" $( git describe --tags --abbrev=0 --match=v* upstream-master) "
63
63
64
+ export new_version upstream_version=" ${grdb_tag# v} " sqlcipher_version=" ${sqlcipher_tag# v} "
65
+
66
+ if [[ " ${current_upstream_version} " == " ${upstream_version} " ]] && \
67
+ [[ " ${current_sqlcipher_version} " == " ${sqlcipher_version} " ]]; then
68
+ echo " GRDB.swift (${upstream_version} ) and SQLCipher (${sqlcipher_version} ) versions did not change. Skipping release."
69
+ exit 1
70
+ fi
71
+
64
72
new_version=
65
73
cat << - EOF
66
74
67
75
DuckDuckGo GRDB.swift current version: ${current_version}
68
- Upstream GRDB.swift version: ${current_upstream_version} -> ${grdb_tag # v }
69
- SQLCipher version: ${current_sqlcipher_version} -> ${sqlcipher_tag # v }
76
+ Upstream GRDB.swift version: ${current_upstream_version} -> ${upstream_version }
77
+ SQLCipher version: ${current_sqlcipher_version} -> ${sqlcipher_version }
70
78
EOF
71
79
72
80
while ! [[ " ${new_version} " =~ [0-9]\. [0-9]\. [0-9] ]]; do
73
81
read -rp " Input DuckDuckGo GRDB.swift desired version number (x.y.z): " new_version < /dev/tty
74
82
done
75
83
76
- export new_version upstream_version=" ${grdb_tag# v} " sqlcipher_version=" ${sqlcipher_tag# v} "
77
84
envsubst < " ${cwd} /.github/README.md.in" > " ${cwd} /.github/README.md"
78
85
git add " ${cwd} /.github/README.md"
79
86
You can’t perform that action at this time.
0 commit comments