Skip to content

Commit 7912e13

Browse files
committed
fix SHORT_SHA
1 parent 2a5031b commit 7912e13

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

dist/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27058,6 +27058,7 @@ const replaceValues = (str) => {
2705827058

2705927059
return str
2706027060
.replace(/{{\s*LC::SHA\s*}}/g, sha)
27061+
.replace(/{{\s*LC::SHORT_SHA\s*}}/g, sha.substring(0, 7))
2706127062
.replace(/{{\s*LC::REF\s*}}/g, ref)
2706227063
.replace(/{{\s*LC::REPO\s*}}/g, repo)
2706327064
.replace(new RegExp(getPattern("TO_DATA_URL"), "g"), (_match, file) => {

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ const replaceValues = (str) => {
2222

2323
return str
2424
.replace(/{{\s*LC::SHA\s*}}/g, sha)
25+
.replace(/{{\s*LC::SHORT_SHA\s*}}/g, sha.substring(0, 7))
2526
.replace(/{{\s*LC::REF\s*}}/g, ref)
2627
.replace(/{{\s*LC::REPO\s*}}/g, repo)
2728
.replace(new RegExp(getPattern("TO_DATA_URL"), "g"), (_match, file) => {

0 commit comments

Comments
 (0)