Skip to content

Commit 2358a05

Browse files
JohnMcLearclaude
andauthored
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>
1 parent f9798cf commit 2358a05

1 file changed

Lines changed: 21 additions & 5 deletions

File tree

.github/workflows/update-plugins.yml

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,21 +43,37 @@ jobs:
4343
# List all ep_* repos from ether org
4444
plugins=$(gh repo list ether --limit 200 --json name --jq '.[] | select(.name | startswith("ep_")) | .name')
4545
46+
failed=""
47+
succeeded=""
48+
skipped=""
49+
4650
for plugin in $plugins; do
4751
echo "============================================================"
4852
echo "Processing $plugin"
4953
echo "============================================================"
5054
5155
# Clone if not present
5256
if [ ! -d "$plugin" ]; then
53-
git clone "https://github.com/ether/${plugin}.git" "$plugin" || { echo "SKIP: clone failed"; continue; }
57+
git clone "https://github.com/ether/${plugin}.git" "$plugin" || { echo "SKIP: clone failed"; skipped="$skipped $plugin"; continue; }
5458
fi
5559
5660
# Pull latest
57-
(cd "$plugin" && git pull --ff-only) || { echo "SKIP: pull failed"; continue; }
61+
(cd "$plugin" && git pull --ff-only) || { echo "SKIP: pull failed"; skipped="$skipped $plugin"; continue; }
5862
59-
# Run checkPlugin with autopush
60-
cd etherpad-lite/bin
61-
pnpm run checkPlugin "$plugin" autopush 2>&1 | tail -20 || echo "WARN: checkPlugin failed for $plugin"
63+
# Run checkPlugin with autopush — continue on failure
64+
if cd etherpad-lite/bin && pnpm run checkPlugin "$plugin" autopush 2>&1; then
65+
succeeded="$succeeded $plugin"
66+
else
67+
echo "WARN: checkPlugin failed for $plugin"
68+
failed="$failed $plugin"
69+
fi
6270
cd ../..
6371
done
72+
73+
echo ""
74+
echo "============================================================"
75+
echo "SUMMARY"
76+
echo "============================================================"
77+
echo "Succeeded:$(echo $succeeded | wc -w) -$succeeded"
78+
echo "Failed:$(echo $failed | wc -w) -$failed"
79+
echo "Skipped:$(echo $skipped | wc -w) -$skipped"

0 commit comments

Comments
 (0)