We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d014fa commit a639b5cCopy full SHA for a639b5c
1 file changed
.github/actions/generate-builder/builder-fetch.sh
@@ -28,6 +28,13 @@ set -euo pipefail
28
PREFIX="refs/tags/"
29
30
# Extract version.
31
+# detect-workflow-js emits a bare 40-char SHA when the caller pins the
32
+# reusable workflow with @<sha>. Normalise that to the refs/tags/ form
33
+# so the SHA-resolution path below can resolve it to a release tag.
34
+if [[ "$BUILDER_REF" =~ ^[a-f0-9]{40}$ ]]; then
35
+ BUILDER_REF="${PREFIX}${BUILDER_REF}"
36
+fi
37
+
38
if [[ "$BUILDER_REF" != "$PREFIX"* ]]; then
39
echo "Invalid ref: $BUILDER_REF. Expected ref of the form refs/tags/vX.Y.Z"
40
exit 2
0 commit comments