Skip to content

Commit 96e757f

Browse files
committed
fix(actions/cdn-upload): define hashLength
1 parent b51f214 commit 96e757f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

actions/cdn-upload/v2/action.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ runs:
6565
6666
# hash is the first 4 characters of the sha256sum of the part that gets truncated.
6767
hash=$(echo -n "${tenantTeam}" | sha256sum | cut -d ' ' -f 1 | cut -b 1-4)
68+
hashLength=${#hash}
6869
6970
# truncate the middle part (not tenant nor prefix)
7071
# for a total output string length of $maxLength.

0 commit comments

Comments
 (0)