Skip to content

Commit 54aed14

Browse files
fix: Strip carriage returns from version validation to handle line ending issues
1 parent cacbbba commit 54aed14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Run version validation
2626
run: |
2727
# Extract versions
28-
CARGO_VERSION=$(grep '^version = ' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/')
28+
CARGO_VERSION=$(grep '^version = ' Cargo.toml | head -1 | sed 's/version = "\(.*\)"/\1/' | tr -d '\r\n')
2929
TAG_VERSION=${GITHUB_REF_NAME#v}
3030
3131
echo "🔍 MANDATORY VERSION VALIDATION"

0 commit comments

Comments
 (0)