Skip to content

Commit 98c67fd

Browse files
committed
chore: use CIRCLE_PULL_REQUEST to get PR number
1 parent ab08185 commit 98c67fd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/snapshot-version.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@
33
# Generates a snapshot version following the format {version}-{pr}{random-3-digit}-SNAPSHOT
44
# Example: 13.3.0-502861-SNAPSHOT
55

6-
pr=$CIRCLE_PR_NUMBER
6+
pr=$(basename $CIRCLE_PULL_REQUEST)
77
random=$(($RANDOM % 900 + 100))
88
version=$(jq -r '.version' package.json)
99
suffix="SNAPSHOT"
1010

1111
SNAPSHOT_VERSION="$version-$pr$random-$suffix"
12-
13-
echo $SNAPSHOT_VERSION

0 commit comments

Comments
 (0)