diff --git a/.gitea/workflows/release_build.yml b/.gitea/workflows/release_build.yml index 1333915..c1b0a0a 100644 --- a/.gitea/workflows/release_build.yml +++ b/.gitea/workflows/release_build.yml @@ -156,7 +156,9 @@ jobs: id: version run: | BASE_VERSION="${{ steps.pick_base_version.outputs.base_version }}" - IFS='.' read -r MAJOR MINOR PATCH <<< "$BASE_VERSION" + MAJOR=$(echo "$BASE_VERSION" | cut -d. -f1) + MINOR=$(echo "$BASE_VERSION" | cut -d. -f2) + PATCH=$(echo "$BASE_VERSION" | cut -d. -f3) COUNT="${{ steps.changed_files.outputs.COUNT }}" if [ "$COUNT" -ge 5 ]; then MAJOR=$((MAJOR + 1))