-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yml
91 lines (90 loc) · 3.09 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
name: 'LuaRocks tag release'
description: 'Publish a package to LuaRocks when a new tag is pushed'
author: 'Marc Jakobi'
branding:
color: 'purple'
icon: 'moon'
inputs:
name:
description: "The name of the your package"
required: true
default: ${{ github.event.repository.name }}
version:
description: |
The version of your package. Uses the git tag by default (if one exists).
Can also be set to `null`, `"scm"` or `"dev"` to publish a development rockspec.
required: false
default: ${{ github.ref_name }}
specrev:
description: |
The rockspec revision. Defaults to '1', resulting in <version>-1 as the <modrev>-<specrev>.
required: false
default: "1"
dependencies:
description: "List of LuaRocks dependencies."
required: false
test_dependencies:
description: "List of test suite dependencies."
required: false
labels:
description: "List of package labels."
required: false
copy_directories:
description: |
List of additional directories to copy.
Only directories that exist will be copied.
The defaults are taken from Neovim's `:help runtimepath`
WARNING: Do not add the directories `lua`, `lib` or `rock_manifest`.
required: true
default: |
{{ neovim.plugin.dirs }}
summary:
description: "Short description of the package."
required: false
detailed_description:
description: "Detailed description of the package."
required: false
template:
description: "Path to a rockspec template."
required: false
license:
description: |
The license SPDX identifier.
By default, it will be fetched from GitHub.
But sometimes, GitHub does not recognise it,
in which case LuaRocks will fall back to this one.
required: false
extra_luarocks_args:
description: |
Extra args to pass to the luarocks command.
For example: "CURL_DIR=/usr/include/x86_64-linux-gnu/"
required: false
fail_on_duplicate:
description: |
Whether to fail if the rock's version has already been published to `luarocks.org`.
required: false
runs:
using: "composite"
steps:
- uses: cachix/install-nix-action@v30
- run: |
nix profile install --quiet --accept-flake-config "${{ github.action_path }}#luarocks-tag-release-action"
shell: bash
- run: luarocks-tag-release-action
env:
INPUT_NAME: ${{ inputs.name }}
INPUT_VERSION: ${{ inputs.version }}
INPUT_SPECREV: ${{ inputs.specrev }}
INPUT_DEPENDENCIES: ${{ inputs.dependencies }}
INPUT_TEST_DEPENDENCIES: ${{ inputs.test_dependencies }}
INPUT_LABELS: ${{ inputs.labels }}
INPUT_COPY_DIRECTORIES: ${{ inputs.copy_directories }}
INPUT_SUMMARY: ${{ inputs.summary }}
INPUT_DETAILED_DESCRIPTION: ${{ inputs.detailed_description }}
INPUT_TEMPLATE: ${{ inputs.template }}
INPUT_LICENSE: ${{ inputs.license }}
INPUT_EXTRA_LUAROCKS_ARGS: ${{ inputs.extra_luarocks_args }}
INPUT_FAIL_ON_DUPLICATE: ${{ inputs.fail_on_duplicate }}
RUNNER_DEBUG: ${{ runner.debug }}
shell: bash