Skip to content

Commit 7e662c5

Browse files
committed
fix(ci): update Jekyll version check to be compatible
- Allow Jekyll version >= 4.3.0 instead of exact 4.4.1 - Use version comparison to ensure compatibility - Fixes workflow failure due to version mismatch
1 parent b721303 commit 7e662c5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,12 +134,12 @@ jobs:
134134
echo "Checking Jekyll version..."
135135
JEKYLL_VERSION=$(bundle exec jekyll --version | cut -d' ' -f2)
136136
echo "Installed Jekyll version: $JEKYLL_VERSION"
137-
EXPECTED_JEKYLL="4.4.1"
137+
EXPECTED_JEKYLL_MIN="4.3.0"
138138
139-
if [[ "$JEKYLL_VERSION" == "$EXPECTED_JEKYLL" ]]; then
140-
echo "✅ Jekyll version matches expected: $EXPECTED_JEKYLL"
139+
if [[ "$(printf '%s\n' "$EXPECTED_JEKYLL_MIN" "$JEKYLL_VERSION" | sort -V | head -n1)" == "$EXPECTED_JEKYLL_MIN" ]]; then
140+
echo "✅ Jekyll version is compatible: $JEKYLL_VERSION (>= $EXPECTED_JEKYLL_MIN)"
141141
else
142-
echo "❌ Jekyll version mismatch. Expected: $EXPECTED_JEKYLL, Got: $JEKYLL_VERSION"
142+
echo "❌ Jekyll version too old. Got: $JEKYLL_VERSION, Expected: >= $EXPECTED_JEKYLL_MIN"
143143
exit 1
144144
fi
145145

0 commit comments

Comments
 (0)