Skip to content

Commit 274bb88

Browse files
committed
Improve comment clarity
1 parent 32744cf commit 274bb88

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/wait-for-crate-dependency.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ get_crate_expected_version_number()
1010
# Additionally this regex with grep works for both the notations
1111
# 1. crate = { some_other_options ... version = "x.y.z" ... other_options }
1212
# 2. crate = "x.y.z"
13+
#
14+
# It also supports optional pre-release suffixes in the form of "-pre.x"
1315
# 3. crate = "w.x.y-pre.z"
1416
local EXPECTED_VERSION=$(grep "$TARGET_CRATE" $INDEX_TOML_FILE | grep -o '[0-9]\.[0-9\.]\+\(-pre\.[0-9]\+\)\?'| head -n 1)
1517
echo $EXPECTED_VERSION

0 commit comments

Comments
 (0)