Skip to content

Commit 06adb4e

Browse files
committed
ci: fix shell syntax for version parsing
1 parent f92f0b6 commit 06adb4e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/bump-version.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ jobs:
4848
id: new_version
4949
run: |
5050
CURRENT="${{ steps.current_version.outputs.version }}"
51-
IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT"
51+
MAJOR=$(echo $CURRENT | cut -d. -f1)
52+
MINOR=$(echo $CURRENT | cut -d. -f2)
53+
PATCH=$(echo $CURRENT | cut -d. -f3)
5254
5355
case "${{ inputs.bump_type }}" in
5456
major)

0 commit comments

Comments
 (0)