Skip to content

Commit

Permalink
fix(hotfix): workflow trigger detection
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jul 13, 2023
1 parent f591650 commit 9dff566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/luarocks-tag-release-action.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ table.insert(args.dependencies, 1, 'lua >= 5.1')
args.ref_type = getenv_or_err('GITHUB_REF_TYPE')
print('Workflow has been triggered by: ' .. args.ref_type)
args.git_ref = getenv_or_err('GITHUB_REF_NAME')
local is_tag = args.ref_type ~= 'tag'
local is_tag = args.ref_type == 'tag'
if not is_tag then
print('Publishing an untagged release.')
args.git_ref = getenv_or_err('GITHUB_SHA')
Expand Down

0 comments on commit 9dff566

Please sign in to comment.