Skip to content

Commit 28aac16

Browse files
oowlclaude
andcommitted
feat: add version input for manual workflow dispatch
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c6b0b9f commit 28aac16

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Publish to LuaRocks
22

33
on:
44
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: 'Version to publish (e.g. 0.1.5)'
8+
required: true
59
push:
610
tags:
711
- "*"
@@ -23,7 +27,7 @@ jobs:
2327
env:
2428
LUAROCKS_API_KEY: ${{ secrets.LUAROCKS_API_KEY }}
2529
run: |
26-
TAG="${GITHUB_REF#refs/tags/}"
30+
TAG="${{ github.event.inputs.version || github.ref_name }}"
2731
ROCKSPEC="lua-reqwest-${TAG}-1.rockspec"
2832
if [ ! -f "$ROCKSPEC" ]; then
2933
echo "Error: $ROCKSPEC not found"

0 commit comments

Comments
 (0)