mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 07:35:05 -04:00
Added updated workflow runners.
This commit is contained in:
parent
324ac44ad3
commit
107598b4b3
8 changed files with 87 additions and 118 deletions
|
@ -15,25 +15,27 @@ cd "${mydir}/../.."
|
|||
pdir=$(cd .. && pwd -P) || exit 1
|
||||
|
||||
plugins=$("${mydir}/listOfficialPlugins") || exit 1
|
||||
echo $plugins
|
||||
for d in ${plugins}; do
|
||||
echo $d
|
||||
log "============================================================"
|
||||
log "${d}"
|
||||
log "============================================================"
|
||||
fd=${pdir}/${d}
|
||||
repo=git@github.com:ether/${plugin}.git
|
||||
repo=https://github.com/ether/${d}.git
|
||||
[ -d "${fd}" ] || {
|
||||
log "Cloning ${repo} to ${fd}..."
|
||||
(cd "${pdir}" && git clone "${repo}" "${d}") || exit 1
|
||||
(cd "${pdir}" && git clone "${repo}" "${d}") || continue
|
||||
} || exit 1
|
||||
log "Fetching latest commits..."
|
||||
(cd "${fd}" && git pull --ff-only) || exit 1
|
||||
log "Getting plugin name..."
|
||||
pn=$(cd "${fd}" && npx -c 'printf %s\\n "${npm_package_name}"') || exit 1
|
||||
[ -n "${pn}" ] || fatal "Unable to determine plugin name for ${d}"
|
||||
md=node_modules/${pn}
|
||||
[ -d "${md}" ] || {
|
||||
log "Installing plugin to ${md}..."
|
||||
ln -s ../../"${d}" "${md}"
|
||||
} || exit 1
|
||||
[ "${md}" -ef "${fd}" ] || fatal "${md} is not a symlink to ${fd}"
|
||||
#log "Getting plugin name..."
|
||||
#pn=$(cd "${fd}" && npx -c 'printf %s\\n "${npm_package_name}"') || exit 1
|
||||
#[ -n "${pn}" ] || fatal "Unable to determine plugin name for ${d}"
|
||||
#md=node_modules/${pn}
|
||||
#[ -d "${md}" ] || {
|
||||
# log "Installing plugin to ${md}..."
|
||||
# ln -s ../../"${d}" "${md}"
|
||||
#} || exit 1
|
||||
#[ "${md}" -ef "${fd}" ] || fatal "${md} is not a symlink to ${fd}"
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue