Skip to content

Commit 2614f1e

Browse files
committed
feat(lua): use external luarocks spec file
1 parent 899620f commit 2614f1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/luarocks-check-versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ jobs:
2727
IFS=$'\n\t'
2828
rc=0
2929
\sudo apt install -y luarocks
30-
\lua -e 'dofile("openid-connect-provider-debugger-0.0.0.rockspec"); for _, dep in ipairs(dependencies) do local package, version = dep:match("^(.+)%s*==%s*(.+)$"); if package and version then print(package .. " " .. version) end end' | while read package current_version ; do
30+
while IFS=' ' read -r package current_version ; do
3131
latest_version="$(\luarocks search "${package}" --porcelain | \head -n 1 | \cut -f 2)"
3232
if [ "${current_version}" != "${latest_version}" ]; then
3333
echo "${package} ${current_version} -> ${latest_version}"
3434
rc=$((rc+1))
3535
fi
36-
done
36+
done < <(\lua -e 'dofile("openid-connect-provider-debugger-0.0.0.rockspec"); for _, dep in ipairs(dependencies) do local package, version = dep:match("^(.+)%s*==%s*(.+)$"); if package and version then print(package .. " " .. version) end end')
3737
exit ${rc}

0 commit comments

Comments
 (0)