From 351cf7f4c59250db48ce2bc77580fb4f200005f5 Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Wed, 14 Feb 2024 13:02:30 -0500 Subject: [PATCH] Build --- dist/index.js | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/dist/index.js b/dist/index.js index 34f298c..9f81554 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1,6 +1,25 @@ /******/ (() => { // webpackBootstrap /******/ var __webpack_modules__ = ({ +/***/ 9778: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.envsubst = void 0; +const REGEXP = new RegExp("\\$\\{?([A-Z_]+)\\}?"); +function envsubst(str) { + return str.replace(REGEXP, replacer); +} +exports.envsubst = envsubst; +function replacer(_match, k) { + return process.env[k] ?? ""; +} + + +/***/ }), + /***/ 1341: /***/ ((__unused_webpack_module, exports) => { @@ -101,6 +120,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getInputs = void 0; const core = __importStar(__nccwpck_require__(2186)); const Shellwords = __importStar(__nccwpck_require__(8519)); +const envsubst_1 = __nccwpck_require__(9778); function getInputs() { const getBuildArguments = (step) => { return getShellWordsInput("stack-build-arguments").concat(getShellWordsInput(`stack-build-arguments-${step}`)); @@ -127,7 +147,7 @@ function getInputDefault(name, d) { } function getShellWordsInput(name, options) { const raw = core.getMultilineInput(name, options).join(" "); - return Shellwords.split(raw); + return Shellwords.split(raw).map(envsubst_1.envsubst); }