File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,11 @@ determine_new_version() {
4
4
}
5
5
6
6
check_notexists_version () {
7
+ cirrus_agent=" ${CIRRUS_CI/ ?*/ (Cirrus-CI)} "
8
+ final_agent=" Release-Script/1.0 ${cirrus_agent:- (local)} (for static-alloc) (author:HeroicKatora)"
9
+ echo $final_agent
7
10
# Does the api information start with: '{"errors":'
8
- [[ $( wget -U " Release-Script (for oxide-auth) (author:HeroicKatora) " " https://crates.io/api/v1/crates/oxide-auth/$new_version " -qO -) == " {\" errors\" :" * ]]
11
+ [[ $( wget -U " %final_agent " " https://crates.io/api/v1/crates/oxide-auth/$new_version " -qO -) == " {\" errors\" :" * ]]
9
12
}
10
13
11
14
count_wip_marker () {
@@ -23,11 +26,13 @@ new_version="$(determine_new_version)"
23
26
[[ -z $( grep -vE ' [0-9a-zA-Z.-]*' <<< " $new_version" ) ]] || { echo " Fail: Check version number: ${new_version} " ; exit 1; }
24
27
25
28
is_force=" "
29
+ do_tag=" "
26
30
27
31
for param in $@
28
32
do
29
33
case " $param " in
30
34
-f) is_force=" -f" ;;
35
+ --tag) do_tag=" yes" ;;
31
36
--help) ;&
32
37
-h) { cat << EOF
33
38
usage: release [-f] [-h|--help] <version>
@@ -70,4 +75,4 @@ check_release_changes && { echo "Fail: No changelog regarding this release"; exi
70
75
# Packaging works. Note: does not publish the version.
71
76
cargo package || { echo " Fail: cargo could not package successfully" ; exit 1; }
72
77
73
- git tag -s $is_force " v$new_version "
78
+ [[ -z $do_tag ]] || git tag -s $is_force " v$new_version "
You can’t perform that action at this time.
0 commit comments