Skip to content

Commit 7ea8a46

Browse files
Fix release run lookup for annotated tags (#2147)
* ci: peel annotated tags in lookup-run-id * ci: drop lookup-run-id regression test
1 parent 4ceaddc commit 7ea8a46

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ci/tools/lookup-run-id

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ fi
117117
# ── Mode: tag ──
118118
echo "Looking up run ID for tag: ${REF} in repository: ${REPOSITORY}" >&2
119119

120-
if ! COMMIT_SHA=$(git rev-parse "${REF}"); then
120+
if ! COMMIT_SHA=$(git rev-parse "${REF}^{commit}"); then
121121
echo "Error: Could not resolve git tag '${REF}' to a commit SHA" >&2
122122
echo "Make sure the tag exists and you have fetched it" >&2
123123
exit 1

0 commit comments

Comments
 (0)