mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-04-17 19:41:21 +02:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
80 lines
2.7 KiB
YAML
80 lines
2.7 KiB
YAML
name: Update Plugins
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 6 * * *' # Daily at 06:00 UTC
|
|
workflow_dispatch: # Allow manual trigger
|
|
|
|
jobs:
|
|
update-plugins:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out etherpad-lite
|
|
uses: actions/checkout@v6
|
|
|
|
- uses: pnpm/action-setup@v5
|
|
name: Install pnpm
|
|
with:
|
|
version: 10
|
|
run_install: false
|
|
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Install bin dependencies
|
|
working-directory: ./bin
|
|
run: pnpm install
|
|
|
|
- name: Configure git
|
|
run: |
|
|
git config --global user.name 'github-actions[bot]'
|
|
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
|
|
|
- name: Clone and update all plugins
|
|
env:
|
|
GH_TOKEN: ${{ secrets.PLUGINS_PAT }}
|
|
run: |
|
|
# Configure git to use the PAT for all ether/ repos
|
|
git config --global url."https://x-access-token:${GH_TOKEN}@github.com/ether/".insteadOf "https://github.com/ether/"
|
|
|
|
cd ..
|
|
# 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"
|
|
echo "============================================================"
|
|
|
|
# Clone if not present
|
|
if [ ! -d "$plugin" ]; then
|
|
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"; skipped="$skipped $plugin"; continue; }
|
|
|
|
# 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"
|