Added updated workflow runners.

This commit is contained in:
SamTV12345 2024-03-16 20:38:00 +01:00
parent 324ac44ad3
commit 107598b4b3
8 changed files with 87 additions and 118 deletions

View file

@ -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