We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32744cf commit 274bb88Copy full SHA for 274bb88
.github/workflows/wait-for-crate-dependency.sh
@@ -10,6 +10,8 @@ get_crate_expected_version_number()
10
# Additionally this regex with grep works for both the notations
11
# 1. crate = { some_other_options ... version = "x.y.z" ... other_options }
12
# 2. crate = "x.y.z"
13
+ #
14
+ # It also supports optional pre-release suffixes in the form of "-pre.x"
15
# 3. crate = "w.x.y-pre.z"
16
local EXPECTED_VERSION=$(grep "$TARGET_CRATE" $INDEX_TOML_FILE | grep -o '[0-9]\.[0-9\.]\+\(-pre\.[0-9]\+\)\?'| head -n 1)
17
echo $EXPECTED_VERSION
0 commit comments