Skip to content

Commit e745b5f

Browse files
authored
Merge pull request #2463 from ShuntaroOkuma/fix-ci-dify-plugin-pip-list-regex
fix(ci): accept SDK 0.9.0+ hyphenated package name in pre-check version detection
2 parents 70b4535 + 366a8f4 commit e745b5f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/pre-check-plugin.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,11 @@ jobs:
246246
247247
# Determine installation method based on dify_plugin version
248248
echo "Detecting dify_plugin version..."
249-
dify_version=$(pip list | grep -o 'dify_plugin\s\+[0-9.]\+' | awk '{print $2}' || echo "not_found")
249+
dify_version=$(pip list | grep -oE 'dify[-_]plugin[[:space:]]+[0-9][0-9.a-zA-Z]*' | awk '{print $2}')
250+
if [ -z "$dify_version" ]; then
251+
dify_version="not_found"
252+
fi
253+
250254
251255
if [ "$dify_version" = "not_found" ]; then
252256
echo "dify_plugin not found in installed packages, using default configuration"

0 commit comments

Comments
 (0)