Default manual image builds to dev-<commit> when no tag is given
A manual run with an empty tag input failed validation. It now uses the checked-out commit's short SHA, and the workflow input is optional. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
b33725adfa
commit
727f5b0261
2 files changed
+4
-4
No files matched your search
@@ -9,7 +9,7 @@ export function imagePublication({ event, ref, inputTag, revision }) {
|
||||
|
||||
let tag, channel;
|
||||
if (event === "workflow_dispatch") {
|
||||
tag = inputTag ?? "";
|
||||
tag = inputTag || `dev-${revision.slice(0, 7)}`;
|
||||
const commit = /^dev-([0-9a-f]{7,40})$/.exec(tag)?.[1];
|
||||
if (!commit || tag !== tag.trim())
|
||||
throw new Error(
|
||||
|
||||
Reference in new issue
Block a user