Skip to content

Commit 1b20fe9

Browse files
committed
fix: actionlint SC2001/SC2295 in prerelease.yml
1 parent bd6011d commit 1b20fe9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/prerelease.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ jobs:
3535
if [ -z "$LATEST" ]; then
3636
NUM=1
3737
else
38-
NUM=$(echo "$LATEST" | sed "s/v${BASE_VERSION}-pre\.\([0-9]*\)/\1/")
38+
PREFIX="v${BASE_VERSION}-pre."
39+
NUM="${LATEST#"$PREFIX"}"
3940
NUM=$((NUM + 1))
4041
fi
4142
TAG="v${BASE_VERSION}-pre.${NUM}"

0 commit comments

Comments
 (0)