Fix container-build-and-release to resolve refs to full SHA
actions/checkout treats short SHAs as branch name patterns, causing fetch failures. Always resolve --ref to a full 40-char SHA before dispatching the workflow. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7641018c6a
commit
179eca2070
1 changed files with 3 additions and 0 deletions
|
|
@ -84,6 +84,9 @@ def main(
|
|||
|
||||
if not ref:
|
||||
ref = git("rev-parse", "HEAD")
|
||||
else:
|
||||
# Resolve short SHAs or branch names to full SHA
|
||||
ref = git("rev-parse", ref)
|
||||
|
||||
short_sha = ref[:7]
|
||||
image = f"blumeops/{container}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue