We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ceaddc commit 7ea8a46Copy full SHA for 7ea8a46
1 file changed
ci/tools/lookup-run-id
@@ -117,7 +117,7 @@ fi
117
# ── Mode: tag ──
118
echo "Looking up run ID for tag: ${REF} in repository: ${REPOSITORY}" >&2
119
120
-if ! COMMIT_SHA=$(git rev-parse "${REF}"); then
+if ! COMMIT_SHA=$(git rev-parse "${REF}^{commit}"); then
121
echo "Error: Could not resolve git tag '${REF}' to a commit SHA" >&2
122
echo "Make sure the tag exists and you have fetched it" >&2
123
exit 1
0 commit comments