add nodejs to version checker

This commit is contained in:
buanet
2023-07-08 23:06:22 +02:00
parent 7af5507f11
commit 85c49cc3e7
2 changed files with 4 additions and 0 deletions

1
.github/dependencies/.nodejs-version vendored Normal file
View File

@@ -0,0 +1 @@
18.16.1

View File

@@ -29,6 +29,9 @@ jobs:
curl -sL https://repo.iobroker.live/sources-dist.json | \
jq -r '."discovery".version' > .github/dependencies/.discovery-version
echo "[LOG] Fetched discovery version is $(cat .github/dependencies/.discovery-version)"
curl -sL "https://deb.nodesource.com/node_18.x/dists/bullseye/main/binary-amd64/Packages" | \
awk -F ': ' '/^Version:/ {split($2,a,"-"); print a[1]}' > .github/dependencies/.nodejs-version
echo "[LOG] Fetched nodejs version is $(cat .github/dependencies/.nodejs-version)"
- name: Check for modified files
id: git-check