mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-07-17 16:47:05 +00:00
Improve update-plugins workflow resilience and add summary (#7407)
Continue processing remaining plugins when one fails instead of crashing. Add summary at the end showing succeeded/failed/skipped counts and plugin names. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f9798cfa4a
commit
2358a052f1
1 changed files with 21 additions and 5 deletions
26
.github/workflows/update-plugins.yml
vendored
26
.github/workflows/update-plugins.yml
vendored
|
|
@ -43,6 +43,10 @@ jobs:
|
|||
# List all ep_* repos from ether org
|
||||
plugins=$(gh repo list ether --limit 200 --json name --jq '.[] | select(.name | startswith("ep_")) | .name')
|
||||
|
||||
failed=""
|
||||
succeeded=""
|
||||
skipped=""
|
||||
|
||||
for plugin in $plugins; do
|
||||
echo "============================================================"
|
||||
echo "Processing $plugin"
|
||||
|
|
@ -50,14 +54,26 @@ jobs:
|
|||
|
||||
# Clone if not present
|
||||
if [ ! -d "$plugin" ]; then
|
||||
git clone "https://github.com/ether/${plugin}.git" "$plugin" || { echo "SKIP: clone failed"; continue; }
|
||||
git clone "https://github.com/ether/${plugin}.git" "$plugin" || { echo "SKIP: clone failed"; skipped="$skipped $plugin"; continue; }
|
||||
fi
|
||||
|
||||
# Pull latest
|
||||
(cd "$plugin" && git pull --ff-only) || { echo "SKIP: pull failed"; continue; }
|
||||
(cd "$plugin" && git pull --ff-only) || { echo "SKIP: pull failed"; skipped="$skipped $plugin"; continue; }
|
||||
|
||||
# Run checkPlugin with autopush
|
||||
cd etherpad-lite/bin
|
||||
pnpm run checkPlugin "$plugin" autopush 2>&1 | tail -20 || echo "WARN: checkPlugin failed for $plugin"
|
||||
# Run checkPlugin with autopush — continue on failure
|
||||
if cd etherpad-lite/bin && pnpm run checkPlugin "$plugin" autopush 2>&1; then
|
||||
succeeded="$succeeded $plugin"
|
||||
else
|
||||
echo "WARN: checkPlugin failed for $plugin"
|
||||
failed="$failed $plugin"
|
||||
fi
|
||||
cd ../..
|
||||
done
|
||||
|
||||
echo ""
|
||||
echo "============================================================"
|
||||
echo "SUMMARY"
|
||||
echo "============================================================"
|
||||
echo "Succeeded:$(echo $succeeded | wc -w) -$succeeded"
|
||||
echo "Failed:$(echo $failed | wc -w) -$failed"
|
||||
echo "Skipped:$(echo $skipped | wc -w) -$skipped"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue