mirror of
https://github.com/unraid/api.git
synced 2026-01-08 01:29:49 -06:00
fix: pull node version directly from nvmrc
This commit is contained in:
2
.github/workflows/main.yml
vendored
2
.github/workflows/main.yml
vendored
@@ -166,7 +166,7 @@ jobs:
|
||||
- name: Download Node.js From Slackbuilds
|
||||
run: |
|
||||
# Get latest node version (based on main_node_version) from slackware
|
||||
main_node_version=$(find "${MAINDIR}/../.." -type f -path "*/api/.nvmrc" -exec sed 's/^v//' {} \;)
|
||||
main_node_version=$(sed 's/^v//' ../api/.nvmrc)
|
||||
base_node_url="https://mirrors.slackware.com/slackware/slackware64-current/slackware64/l/"
|
||||
latest_nodejs=$(wget -q -O- "${base_node_url}" | grep -o "nodejs-${main_node_version}\.[0-9.]*-x86_64-[0-9]*\.txz" | sort -V | tail -n 1)
|
||||
if [[ -z "${latest_nodejs}" ]]; then
|
||||
|
||||
Reference in New Issue
Block a user