Skip to content

Commit

Permalink
[fork] update URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Oct 28, 2024
1 parent e5a6698 commit 8acd6db
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# Github Action for LuaRocks

### `leafo/gh-actions-luarocks`
### `luarocks/gh-actions-luarocks`

[![Actions Status](https://github.com/leafo/gh-actions-luarocks/workflows/test/badge.svg)](https://github.com/leafo/gh-actions-luarocks/actions)
[![Actions Status](https://github.com/luarocks/gh-actions-luarocks/workflows/test/badge.svg)](https://github.com/luarocks/gh-actions-luarocks/actions)

Builds and installs LuaRocks from source into the `.luarocks/` directory in the working directory. Configures `PATH`, `LUA_PATH`, and `LUA_CPATH` environment variables to be able to use the `luarocks` command directly in workflows, and require installed modules in Lua.

[`leafo/gh-actions-lua`](https://github.com/marketplace/actions/install-lua-luajit) can be used to install Lua, which is required for LuaRocks to build and run. (This action will use any Lua installed in `.lua/`).
[`luarocks/gh-actions-lua`](https://github.com/marketplace/actions/install-lua-luajit) can be used to install Lua, which is required for LuaRocks to build and run. (This action will use any Lua installed in `.lua/`).

## Usage

Installs Lua, LuaRocks, then install a module:

```yaml
- uses: leafo/gh-actions-lua@v9
- uses: leafo/gh-actions-luarocks@v4
- uses: luarocks/gh-actions-lua@v10
- uses: luarocks/gh-actions-luarocks@v5

# Install some package
- name: install a module
run: luarocks install moonscript
```
For a more complete example see: https://github.com/leafo/gh-actions-lua/blob/master/README.md#full-example
For a more complete example see: https://github.com/luarocks/gh-actions-lua/blob/master/README.md#full-example
## Inputs
Expand All @@ -34,7 +34,7 @@ Specifies which version of LuaRocks to install. Must be listed on https://luaroc
Example:

```yaml
- uses: leafo/gh-actions-luarocks@v4
- uses: luarocks/gh-actions-luarocks@v5
with:
luaRocksVersion: "3.1.3"
```
Expand All @@ -44,13 +44,13 @@ Example:
**Default**: `null` (Optional)

Manually specify the path to an existing Lua installation to use. This is not
necessary if you are using `leafo/gh-actions-lua`. Will build LuaRocks with
necessary if you are using `luarocks/gh-actions-lua`. Will build LuaRocks with
`./configure --with-lua=$withLuaPath`

Example:

```yaml
- uses: leafo/gh-actions-luarocks@v4
- uses: luarocks/gh-actions-luarocks@v5
with:
withLuaPath: "/usr/local/openresty/luajit/"
```

0 comments on commit 8acd6db

Please sign in to comment.