Skip to content

Commit 899620f

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

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,18 @@ jobs:
1616
luarocks-check-versions:
1717
runs-on: ubuntu-latest
1818
steps:
19-
- name: Check the versions
19+
- name: Check out
20+
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
with:
22+
persist-credentials: false
23+
- name: Check outdated dependencies
2024
shell: bash
2125
run: |
2226
set -euo pipefail
2327
IFS=$'\n\t'
2428
rc=0
2529
\sudo apt install -y luarocks
26-
\lua -e 'dofile("/tmp/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+
\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
2731
latest_version="$(\luarocks search "${package}" --porcelain | \head -n 1 | \cut -f 2)"
2832
if [ "${current_version}" != "${latest_version}" ]; then
2933
echo "${package} ${current_version} -> ${latest_version}"

0 commit comments

Comments
 (0)