Skip to content

Commit c88c566

Browse files
author
Arun Philip
committed
strip v from expected version to ensure version check works as expected
1 parent 61a6a52 commit c88c566

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ jobs:
6060
echo "Version: $VERSION"
6161
[ -n "$VERSION" ] || { echo "ERROR: --version produced empty output"; exit 1; }
6262
if [ "${GITHUB_EVENT_NAME}" != "pull_request" ]; then
63-
EXPECTED="${GITHUB_REF_NAME}"
63+
EXPECTED="${GITHUB_REF_NAME#v}"
6464
[ "$VERSION" = "$EXPECTED" ] || { echo "ERROR: expected $EXPECTED got $VERSION"; exit 1; }
6565
fi

0 commit comments

Comments
 (0)