From 7912e13be6e03ddd6e8679b1d1f295f511314e6d Mon Sep 17 00:00:00 2001 From: Hatem Hosny Date: Sun, 11 Feb 2024 19:45:49 +0200 Subject: [PATCH] fix SHORT_SHA --- dist/index.js | 1 + index.js | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index fd66f2a..a3a2f4c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27058,6 +27058,7 @@ const replaceValues = (str) => { return str .replace(/{{\s*LC::SHA\s*}}/g, sha) + .replace(/{{\s*LC::SHORT_SHA\s*}}/g, sha.substring(0, 7)) .replace(/{{\s*LC::REF\s*}}/g, ref) .replace(/{{\s*LC::REPO\s*}}/g, repo) .replace(new RegExp(getPattern("TO_DATA_URL"), "g"), (_match, file) => { diff --git a/index.js b/index.js index bc8b21e..fbb14e7 100644 --- a/index.js +++ b/index.js @@ -22,6 +22,7 @@ const replaceValues = (str) => { return str .replace(/{{\s*LC::SHA\s*}}/g, sha) + .replace(/{{\s*LC::SHORT_SHA\s*}}/g, sha.substring(0, 7)) .replace(/{{\s*LC::REF\s*}}/g, ref) .replace(/{{\s*LC::REPO\s*}}/g, repo) .replace(new RegExp(getPattern("TO_DATA_URL"), "g"), (_match, file) => {