Skip to content

Commit ef96743

Browse files
committed
Use lua-version instead of luaVersion.
1 parent d32a5ba commit ef96743

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@master
2020
- uses: xpol/setup-lua@master
2121
with:
22-
luaVersion: ${{ matrix.luaVersion }}
22+
lua-version: ${{ matrix.luaVersion }}
2323

2424
- name: bundle binaries
2525
run: tar czf '${{matrix.luaVersion}}.tar.gz' .lua

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/checkout@master
1616
- uses: ./
1717
with:
18-
luaVersion: ${{ matrix.luaVersion }}
18+
lua-version: ${{ matrix.luaVersion }}
1919

2020
- name: test lua
2121
run: |

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,20 @@ Install specific version of Lua:
2727
```yaml
2828
- uses: xpol/setup-lua@v1
2929
with:
30-
luaVersion: "5.1.5"
30+
lua-version: "5.1.5"
3131
```
3232
3333
Install specific version of LuaJIT:
3434
3535
```yaml
3636
- uses: xpol/setup-lua@v1
3737
with:
38-
luaVersion: "luajit-2.0.5"
38+
lua-version: "luajit-2.0.5"
3939
```
4040
4141
## Inputs
4242
43-
### `luaVersion`
43+
### `lua-version`
4444

4545
**Default**: `"5.3.5"`
4646

@@ -106,7 +106,7 @@ jobs:
106106
107107
- uses: xpol/setup-lua@v1
108108
with:
109-
luaVersion: "5.1.5"
109+
lua-version: "5.1.5"
110110
111111
- uses: leafo/gh-actions-luarocks@v2
112112
@@ -122,7 +122,7 @@ jobs:
122122

123123
This example:
124124

125-
* Uses Lua 5.1.5 — You can use another version by chaning the `luaVersion` varible. LuaJIT versions can be used by prefixing the version with `luajit-`, i.e. `luajit-2.1.0-beta3`
125+
* Uses Lua 5.1.5 — You can use another version by chaning the `lua-version` varible. LuaJIT versions can be used by prefixing the version with `luajit-`, i.e. `luajit-2.1.0-beta3`
126126
* Uses a `.rockspec` file the root directory of your repository to install dependencies and test packaging the module via `luarocks make`
127127

128128
View the documentation for the individual actions (linked above) to learn more about how they work.
@@ -142,7 +142,7 @@ jobs:
142142
- uses: actions/checkout@master
143143
- uses: xpol/setup-lua@v1
144144
with:
145-
luaVersion: ${{ matrix.luaVersion }}
145+
lua-version: ${{ matrix.luaVersion }}
146146
147147
# ...
148148
```

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ function getTarball(version) {
100100
}
101101

102102
function getLuaVersion() {
103-
const luaVersion = core.getInput('luaVersion', { required: true })
103+
const luaVersion = core.getInput('lua-version', { required: true })
104104
return VERSION_ALIASES[luaVersion] || luaVersion
105105
}
106106

0 commit comments

Comments
 (0)