Skip to content

Commit

Permalink
revert: add target-server input
Browse files Browse the repository at this point in the history
This reverts commit e9c2949.
  • Loading branch information
mrcjkb committed Mar 2, 2024
1 parent 6846f8f commit 9f49b06
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -351,19 +351,6 @@ Example:
> (assuming you are have set `runs-on: ubuntu-xyz`),
> you can run `dpkg -L <package-name>`.

### `target_server`

The server to which to upload the rock.

Example:

```yaml
- name: LuaRocks Upload
uses: nvim-neorocks/luarocks-tag-release@v5
with:
target_server: https://luarocks.org/m/neovim
```

## Example configurations

See the [Example configurations wiki page](https://github.com/nvim-neorocks/luarocks-tag-release/wiki/Example-configurations).
Expand Down
5 changes: 0 additions & 5 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ inputs:
Extra args to pass to the luarocks command.
For example: "CURL_DIR=/usr/include/x86_64-linux-gnu/"
required: false
target_server:
description: |
The luarocks server to publish to
required: false
runs:
using: "composite"
steps:
Expand All @@ -88,6 +84,5 @@ runs:
INPUT_LICENSE: ${{ inputs.license }}
INPUT_TEST_INTERPRETERS: ${{ inputs.test_interpreters }}
INPUT_EXTRA_LUAROCKS_ARGS: ${{ inputs.extra_luarocks_args }}
INPUT_TARGET_SERVER: ${{ inputs.target_server }}
RUNNER_DEBUG: ${{ runner.debug }}
shell: bash
1 change: 0 additions & 1 deletion bin/luarocks-tag-release-action.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ local args = {
license = license_input ~= '' and license_input or nil,
luarocks_test_interpreters = test_interpreters,
extra_luarocks_args = Parser.parse_list_args(getenv_or_empty('INPUT_EXTRA_LUAROCKS_ARGS')),
target_server = os.getenv('INPUT_TARGET_SERVER'),
github_event_path = getenv_or_err('GITHUB_EVENT_PATH'),
ref_type = os.getenv('GITHUB_REF_TYPE_OVERRIDE') or getenv_or_err('GITHUB_REF_TYPE'),
git_ref = os.getenv('GITHUB_REF_NAME_OVERRIDE') or getenv_or_err('GITHUB_REF_NAME'),
Expand Down
2 changes: 0 additions & 2 deletions lua/luarocks-tag-release.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
---@field license string|nil License SPDX ID (optional).
---@field luarocks_test_interpreters lua_interpreter[]
---@field extra_luarocks_args string[]
---@field target_server string|nil The server to publish to
---@field github_event_path string|nil The path to the file on the runner that contains the full event webhook payload. For example, /github/workflow/event.json.
---@field is_debug boolean Whether to enable debug logging

Expand Down Expand Up @@ -91,7 +90,6 @@ local function luarocks_tag_release(package_name, package_version, specrev, args
.. target_rockspec_path
.. ' --api-key $LUAROCKS_API_KEY'
.. luarocks_extra_flags_and_args
.. (args.target_server and ' --server ' .. args.target_server or '')
print('UPLOAD: ' .. cmd)
local stdout, _ = OS.execute(cmd, error, args.is_debug)
print(stdout)
Expand Down

0 comments on commit 9f49b06

Please sign in to comment.