Skip to content

Commit 7bd7cb5

Browse files
committed
Update ci.yml
1 parent 215e72f commit 7bd7cb5

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,11 @@ jobs:
8282
ls -R
8383
pwd
8484
85-
cp "$repo_name/plugin.json" dist/"$repo_name"/plugin.json 2>/dev/null || echo "::error::plugin.json not found, skipping."
86-
cp "$repo_name/requirements.txt" dist/"$repo_name"/requirements.txt 2>/dev/null || echo "::warning::requirements.txt not found, skipping."
87-
cp "$repo_name/README.md" dist/"$repo_name"/README.md 2>/dev/null || echo "::warning::README.md not found, skipping."
88-
cp "$repo_name/README" dist/"$repo_name"/README 2>/dev/null || echo "::warning::README not found, skipping."
85+
cp "plugin.json" dist/plugin.json 2>/dev/null || { echo "::error::plugin.json was not found. It is required for plugins to have."; exit 1; }
86+
87+
cp "requirements.txt" dist/requirements.txt 2>/dev/null || echo "::warning::requirements.txt not found, skipping."
88+
cp "README.md" dist/README.md 2>/dev/null || echo "::warning::README.md not found, skipping."
89+
cp "README" dist/README 2>/dev/null || echo "::warning::README not found, skipping."
8990
9091
backend=$(jq -r '.backend' plugin.json)
9192
if [ "$backend" != "null" ]; then

0 commit comments

Comments
 (0)