2020-05-18 07:08:29 +00:00
|
|
|
module.exports =
|
|
|
|
/******/ (function(modules, runtime) { // webpackBootstrap
|
|
|
|
/******/ "use strict";
|
|
|
|
/******/ // The module cache
|
|
|
|
/******/ var installedModules = {};
|
|
|
|
/******/
|
|
|
|
/******/ // The require function
|
|
|
|
/******/ function __webpack_require__(moduleId) {
|
|
|
|
/******/
|
|
|
|
/******/ // Check if module is in cache
|
|
|
|
/******/ if(installedModules[moduleId]) {
|
|
|
|
/******/ return installedModules[moduleId].exports;
|
|
|
|
/******/ }
|
|
|
|
/******/ // Create a new module (and put it into the cache)
|
|
|
|
/******/ var module = installedModules[moduleId] = {
|
|
|
|
/******/ i: moduleId,
|
|
|
|
/******/ l: false,
|
|
|
|
/******/ exports: {}
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // Execute the module function
|
|
|
|
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
|
|
|
/******/
|
|
|
|
/******/ // Flag the module as loaded
|
|
|
|
/******/ module.l = true;
|
|
|
|
/******/
|
|
|
|
/******/ // Return the exports of the module
|
|
|
|
/******/ return module.exports;
|
|
|
|
/******/ }
|
|
|
|
/******/
|
|
|
|
/******/
|
|
|
|
/******/ __webpack_require__.ab = __dirname + "/";
|
|
|
|
/******/
|
|
|
|
/******/ // the startup function
|
|
|
|
/******/ function startup() {
|
|
|
|
/******/ // Load entry module and return exports
|
|
|
|
/******/ return __webpack_require__(175);
|
|
|
|
/******/ };
|
|
|
|
/******/
|
|
|
|
/******/ // run startup
|
|
|
|
/******/ return startup();
|
|
|
|
/******/ })
|
|
|
|
/************************************************************************/
|
|
|
|
/******/ ({
|
|
|
|
|
2020-10-07 21:06:49 +00:00
|
|
|
/***/ 82:
|
|
|
|
/***/ (function(__unusedmodule, exports) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
// We use any as a valid input type
|
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
/**
|
|
|
|
* Sanitizes an input into a string so it can be passed into issueCommand safely
|
|
|
|
* @param input input to sanitize into a string
|
|
|
|
*/
|
|
|
|
function toCommandValue(input) {
|
|
|
|
if (input === null || input === undefined) {
|
|
|
|
return '';
|
|
|
|
}
|
|
|
|
else if (typeof input === 'string' || input instanceof String) {
|
|
|
|
return input;
|
|
|
|
}
|
|
|
|
return JSON.stringify(input);
|
|
|
|
}
|
|
|
|
exports.toCommandValue = toCommandValue;
|
|
|
|
//# sourceMappingURL=utils.js.map
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
2020-05-18 07:08:29 +00:00
|
|
|
/***/ 87:
|
|
|
|
/***/ (function(module) {
|
|
|
|
|
|
|
|
module.exports = require("os");
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
2020-10-07 21:06:49 +00:00
|
|
|
/***/ 102:
|
|
|
|
/***/ (function(__unusedmodule, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
// For internal use, subject to change.
|
|
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
|
if (mod && mod.__esModule) return mod;
|
|
|
|
var result = {};
|
|
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
|
|
result["default"] = mod;
|
|
|
|
return result;
|
|
|
|
};
|
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
// We use any as a valid input type
|
|
|
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
|
|
const fs = __importStar(__webpack_require__(747));
|
|
|
|
const os = __importStar(__webpack_require__(87));
|
|
|
|
const utils_1 = __webpack_require__(82);
|
|
|
|
function issueCommand(command, message) {
|
|
|
|
const filePath = process.env[`GITHUB_${command}`];
|
|
|
|
if (!filePath) {
|
|
|
|
throw new Error(`Unable to find environment variable for file command ${command}`);
|
|
|
|
}
|
|
|
|
if (!fs.existsSync(filePath)) {
|
|
|
|
throw new Error(`Missing file at path: ${filePath}`);
|
|
|
|
}
|
|
|
|
fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, {
|
|
|
|
encoding: 'utf8'
|
|
|
|
});
|
|
|
|
}
|
|
|
|
exports.issueCommand = issueCommand;
|
|
|
|
//# sourceMappingURL=file-command.js.map
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
2020-05-18 07:08:29 +00:00
|
|
|
/***/ 129:
|
|
|
|
/***/ (function(module) {
|
|
|
|
|
|
|
|
module.exports = require("child_process");
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 175:
|
|
|
|
/***/ (function(__unusedmodule, __unusedexports, __webpack_require__) {
|
|
|
|
|
|
|
|
const core = __webpack_require__(470)
|
|
|
|
const { execSync } = __webpack_require__(129)
|
|
|
|
|
|
|
|
try {
|
|
|
|
// Kill the started SSH agent
|
|
|
|
console.log('Stopping SSH agent')
|
|
|
|
execSync('kill ${SSH_AGENT_PID}', { stdio: 'inherit' })
|
|
|
|
} catch (error) {
|
2020-06-24 06:31:28 +00:00
|
|
|
console.log(error.message);
|
|
|
|
console.log('Error stopping the SSH agent, proceeding anyway');
|
2020-05-18 07:08:29 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 431:
|
|
|
|
/***/ (function(__unusedmodule, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
2020-06-24 06:31:28 +00:00
|
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
|
if (mod && mod.__esModule) return mod;
|
|
|
|
var result = {};
|
|
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
|
|
result["default"] = mod;
|
|
|
|
return result;
|
|
|
|
};
|
2020-05-18 07:08:29 +00:00
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2020-06-24 06:31:28 +00:00
|
|
|
const os = __importStar(__webpack_require__(87));
|
2020-10-07 21:06:49 +00:00
|
|
|
const utils_1 = __webpack_require__(82);
|
2020-05-18 07:08:29 +00:00
|
|
|
/**
|
|
|
|
* Commands
|
|
|
|
*
|
|
|
|
* Command Format:
|
2020-06-24 06:31:28 +00:00
|
|
|
* ::name key=value,key=value::message
|
2020-05-18 07:08:29 +00:00
|
|
|
*
|
|
|
|
* Examples:
|
2020-06-24 06:31:28 +00:00
|
|
|
* ::warning::This is the message
|
|
|
|
* ::set-env name=MY_VAR::some value
|
2020-05-18 07:08:29 +00:00
|
|
|
*/
|
|
|
|
function issueCommand(command, properties, message) {
|
|
|
|
const cmd = new Command(command, properties, message);
|
|
|
|
process.stdout.write(cmd.toString() + os.EOL);
|
|
|
|
}
|
|
|
|
exports.issueCommand = issueCommand;
|
|
|
|
function issue(name, message = '') {
|
|
|
|
issueCommand(name, {}, message);
|
|
|
|
}
|
|
|
|
exports.issue = issue;
|
2020-06-24 06:31:28 +00:00
|
|
|
const CMD_STRING = '::';
|
2020-05-18 07:08:29 +00:00
|
|
|
class Command {
|
|
|
|
constructor(command, properties, message) {
|
|
|
|
if (!command) {
|
|
|
|
command = 'missing.command';
|
|
|
|
}
|
|
|
|
this.command = command;
|
|
|
|
this.properties = properties;
|
|
|
|
this.message = message;
|
|
|
|
}
|
|
|
|
toString() {
|
2020-06-24 06:31:28 +00:00
|
|
|
let cmdStr = CMD_STRING + this.command;
|
2020-05-18 07:08:29 +00:00
|
|
|
if (this.properties && Object.keys(this.properties).length > 0) {
|
|
|
|
cmdStr += ' ';
|
2020-06-24 06:31:28 +00:00
|
|
|
let first = true;
|
2020-05-18 07:08:29 +00:00
|
|
|
for (const key in this.properties) {
|
|
|
|
if (this.properties.hasOwnProperty(key)) {
|
|
|
|
const val = this.properties[key];
|
|
|
|
if (val) {
|
2020-06-24 06:31:28 +00:00
|
|
|
if (first) {
|
|
|
|
first = false;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
cmdStr += ',';
|
|
|
|
}
|
|
|
|
cmdStr += `${key}=${escapeProperty(val)}`;
|
2020-05-18 07:08:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-06-24 06:31:28 +00:00
|
|
|
cmdStr += `${CMD_STRING}${escapeData(this.message)}`;
|
2020-05-18 07:08:29 +00:00
|
|
|
return cmdStr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
function escapeData(s) {
|
2020-10-07 21:06:49 +00:00
|
|
|
return utils_1.toCommandValue(s)
|
2020-06-24 06:31:28 +00:00
|
|
|
.replace(/%/g, '%25')
|
|
|
|
.replace(/\r/g, '%0D')
|
|
|
|
.replace(/\n/g, '%0A');
|
2020-05-18 07:08:29 +00:00
|
|
|
}
|
2020-06-24 06:31:28 +00:00
|
|
|
function escapeProperty(s) {
|
2020-10-07 21:06:49 +00:00
|
|
|
return utils_1.toCommandValue(s)
|
2020-06-24 06:31:28 +00:00
|
|
|
.replace(/%/g, '%25')
|
2020-05-18 07:08:29 +00:00
|
|
|
.replace(/\r/g, '%0D')
|
|
|
|
.replace(/\n/g, '%0A')
|
2020-06-24 06:31:28 +00:00
|
|
|
.replace(/:/g, '%3A')
|
|
|
|
.replace(/,/g, '%2C');
|
2020-05-18 07:08:29 +00:00
|
|
|
}
|
|
|
|
//# sourceMappingURL=command.js.map
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 470:
|
|
|
|
/***/ (function(__unusedmodule, exports, __webpack_require__) {
|
|
|
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
|
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
|
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
|
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
|
|
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
|
|
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
|
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
|
|
});
|
|
|
|
};
|
2020-06-24 06:31:28 +00:00
|
|
|
var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
|
if (mod && mod.__esModule) return mod;
|
|
|
|
var result = {};
|
|
|
|
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
|
|
result["default"] = mod;
|
|
|
|
return result;
|
|
|
|
};
|
2020-05-18 07:08:29 +00:00
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
|
const command_1 = __webpack_require__(431);
|
2020-10-07 21:06:49 +00:00
|
|
|
const file_command_1 = __webpack_require__(102);
|
|
|
|
const utils_1 = __webpack_require__(82);
|
2020-06-24 06:31:28 +00:00
|
|
|
const os = __importStar(__webpack_require__(87));
|
|
|
|
const path = __importStar(__webpack_require__(622));
|
2020-05-18 07:08:29 +00:00
|
|
|
/**
|
|
|
|
* The code to exit an action
|
|
|
|
*/
|
|
|
|
var ExitCode;
|
|
|
|
(function (ExitCode) {
|
|
|
|
/**
|
|
|
|
* A code indicating that the action was successful
|
|
|
|
*/
|
|
|
|
ExitCode[ExitCode["Success"] = 0] = "Success";
|
|
|
|
/**
|
|
|
|
* A code indicating that the action was a failure
|
|
|
|
*/
|
|
|
|
ExitCode[ExitCode["Failure"] = 1] = "Failure";
|
|
|
|
})(ExitCode = exports.ExitCode || (exports.ExitCode = {}));
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
// Variables
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
/**
|
2020-06-24 06:31:28 +00:00
|
|
|
* Sets env variable for this action and future actions in the job
|
2020-05-18 07:08:29 +00:00
|
|
|
* @param name the name of the variable to set
|
2020-06-24 06:31:28 +00:00
|
|
|
* @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify
|
2020-05-18 07:08:29 +00:00
|
|
|
*/
|
2020-06-24 06:31:28 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2020-05-18 07:08:29 +00:00
|
|
|
function exportVariable(name, val) {
|
2020-10-07 21:06:49 +00:00
|
|
|
const convertedVal = utils_1.toCommandValue(val);
|
2020-06-24 06:31:28 +00:00
|
|
|
process.env[name] = convertedVal;
|
2020-10-07 21:06:49 +00:00
|
|
|
const filePath = process.env['GITHUB_ENV'] || '';
|
|
|
|
if (filePath) {
|
|
|
|
const delimiter = '_GitHubActionsFileCommandDelimeter_';
|
|
|
|
const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`;
|
|
|
|
file_command_1.issueCommand('ENV', commandValue);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
command_1.issueCommand('set-env', { name }, convertedVal);
|
|
|
|
}
|
2020-05-18 07:08:29 +00:00
|
|
|
}
|
|
|
|
exports.exportVariable = exportVariable;
|
|
|
|
/**
|
2020-06-24 06:31:28 +00:00
|
|
|
* Registers a secret which will get masked from logs
|
|
|
|
* @param secret value of the secret
|
2020-05-18 07:08:29 +00:00
|
|
|
*/
|
2020-06-24 06:31:28 +00:00
|
|
|
function setSecret(secret) {
|
|
|
|
command_1.issueCommand('add-mask', {}, secret);
|
2020-05-18 07:08:29 +00:00
|
|
|
}
|
2020-06-24 06:31:28 +00:00
|
|
|
exports.setSecret = setSecret;
|
2020-05-18 07:08:29 +00:00
|
|
|
/**
|
|
|
|
* Prepends inputPath to the PATH (for this action and future actions)
|
|
|
|
* @param inputPath
|
|
|
|
*/
|
|
|
|
function addPath(inputPath) {
|
2020-10-07 21:06:49 +00:00
|
|
|
const filePath = process.env['GITHUB_PATH'] || '';
|
|
|
|
if (filePath) {
|
|
|
|
file_command_1.issueCommand('PATH', inputPath);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
command_1.issueCommand('add-path', {}, inputPath);
|
|
|
|
}
|
2020-05-18 07:08:29 +00:00
|
|
|
process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`;
|
|
|
|
}
|
|
|
|
exports.addPath = addPath;
|
|
|
|
/**
|
|
|
|
* Gets the value of an input. The value is also trimmed.
|
|
|
|
*
|
|
|
|
* @param name name of the input to get
|
|
|
|
* @param options optional. See InputOptions.
|
|
|
|
* @returns string
|
|
|
|
*/
|
|
|
|
function getInput(name, options) {
|
2020-06-24 06:31:28 +00:00
|
|
|
const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || '';
|
2020-05-18 07:08:29 +00:00
|
|
|
if (options && options.required && !val) {
|
|
|
|
throw new Error(`Input required and not supplied: ${name}`);
|
|
|
|
}
|
|
|
|
return val.trim();
|
|
|
|
}
|
|
|
|
exports.getInput = getInput;
|
|
|
|
/**
|
|
|
|
* Sets the value of an output.
|
|
|
|
*
|
|
|
|
* @param name name of the output to set
|
2020-06-24 06:31:28 +00:00
|
|
|
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
|
2020-05-18 07:08:29 +00:00
|
|
|
*/
|
2020-06-24 06:31:28 +00:00
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
2020-05-18 07:08:29 +00:00
|
|
|
function setOutput(name, value) {
|
|
|
|
command_1.issueCommand('set-output', { name }, value);
|
|
|
|
}
|
|
|
|
exports.setOutput = setOutput;
|
2020-06-24 06:31:28 +00:00
|
|
|
/**
|
|
|
|
* Enables or disables the echoing of commands into stdout for the rest of the step.
|
|
|
|
* Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
function setCommandEcho(enabled) {
|
|
|
|
command_1.issue('echo', enabled ? 'on' : 'off');
|
|
|
|
}
|
|
|
|
exports.setCommandEcho = setCommandEcho;
|
2020-05-18 07:08:29 +00:00
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
// Results
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
/**
|
|
|
|
* Sets the action status to failed.
|
|
|
|
* When the action exits it will be with an exit code of 1
|
|
|
|
* @param message add error issue message
|
|
|
|
*/
|
|
|
|
function setFailed(message) {
|
|
|
|
process.exitCode = ExitCode.Failure;
|
|
|
|
error(message);
|
|
|
|
}
|
|
|
|
exports.setFailed = setFailed;
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
// Logging Commands
|
|
|
|
//-----------------------------------------------------------------------
|
2020-06-24 06:31:28 +00:00
|
|
|
/**
|
|
|
|
* Gets whether Actions Step Debug is on or not
|
|
|
|
*/
|
|
|
|
function isDebug() {
|
|
|
|
return process.env['RUNNER_DEBUG'] === '1';
|
|
|
|
}
|
|
|
|
exports.isDebug = isDebug;
|
2020-05-18 07:08:29 +00:00
|
|
|
/**
|
|
|
|
* Writes debug message to user log
|
|
|
|
* @param message debug message
|
|
|
|
*/
|
|
|
|
function debug(message) {
|
|
|
|
command_1.issueCommand('debug', {}, message);
|
|
|
|
}
|
|
|
|
exports.debug = debug;
|
|
|
|
/**
|
|
|
|
* Adds an error issue
|
2020-06-24 06:31:28 +00:00
|
|
|
* @param message error issue message. Errors will be converted to string via toString()
|
2020-05-18 07:08:29 +00:00
|
|
|
*/
|
|
|
|
function error(message) {
|
2020-06-24 06:31:28 +00:00
|
|
|
command_1.issue('error', message instanceof Error ? message.toString() : message);
|
2020-05-18 07:08:29 +00:00
|
|
|
}
|
|
|
|
exports.error = error;
|
|
|
|
/**
|
|
|
|
* Adds an warning issue
|
2020-06-24 06:31:28 +00:00
|
|
|
* @param message warning issue message. Errors will be converted to string via toString()
|
2020-05-18 07:08:29 +00:00
|
|
|
*/
|
|
|
|
function warning(message) {
|
2020-06-24 06:31:28 +00:00
|
|
|
command_1.issue('warning', message instanceof Error ? message.toString() : message);
|
2020-05-18 07:08:29 +00:00
|
|
|
}
|
|
|
|
exports.warning = warning;
|
2020-06-24 06:31:28 +00:00
|
|
|
/**
|
|
|
|
* Writes info to log with console.log.
|
|
|
|
* @param message info message
|
|
|
|
*/
|
|
|
|
function info(message) {
|
|
|
|
process.stdout.write(message + os.EOL);
|
|
|
|
}
|
|
|
|
exports.info = info;
|
2020-05-18 07:08:29 +00:00
|
|
|
/**
|
|
|
|
* Begin an output group.
|
|
|
|
*
|
|
|
|
* Output until the next `groupEnd` will be foldable in this group
|
|
|
|
*
|
|
|
|
* @param name The name of the output group
|
|
|
|
*/
|
|
|
|
function startGroup(name) {
|
|
|
|
command_1.issue('group', name);
|
|
|
|
}
|
|
|
|
exports.startGroup = startGroup;
|
|
|
|
/**
|
|
|
|
* End an output group.
|
|
|
|
*/
|
|
|
|
function endGroup() {
|
|
|
|
command_1.issue('endgroup');
|
|
|
|
}
|
|
|
|
exports.endGroup = endGroup;
|
|
|
|
/**
|
|
|
|
* Wrap an asynchronous function call in a group.
|
|
|
|
*
|
|
|
|
* Returns the same type as the function itself.
|
|
|
|
*
|
|
|
|
* @param name The name of the group
|
|
|
|
* @param fn The function to wrap in the group
|
|
|
|
*/
|
|
|
|
function group(name, fn) {
|
|
|
|
return __awaiter(this, void 0, void 0, function* () {
|
|
|
|
startGroup(name);
|
|
|
|
let result;
|
|
|
|
try {
|
|
|
|
result = yield fn();
|
|
|
|
}
|
|
|
|
finally {
|
|
|
|
endGroup();
|
|
|
|
}
|
|
|
|
return result;
|
|
|
|
});
|
|
|
|
}
|
|
|
|
exports.group = group;
|
2020-06-24 06:31:28 +00:00
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
// Wrapper action state
|
|
|
|
//-----------------------------------------------------------------------
|
|
|
|
/**
|
|
|
|
* Saves state for current action, the state can only be retrieved by this action's post job execution.
|
|
|
|
*
|
|
|
|
* @param name name of the state to store
|
|
|
|
* @param value value to store. Non-string values will be converted to a string via JSON.stringify
|
|
|
|
*/
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
|
|
function saveState(name, value) {
|
|
|
|
command_1.issueCommand('save-state', { name }, value);
|
|
|
|
}
|
|
|
|
exports.saveState = saveState;
|
|
|
|
/**
|
|
|
|
* Gets the value of an state set by this action's main execution.
|
|
|
|
*
|
|
|
|
* @param name name of the state to get
|
|
|
|
* @returns string
|
|
|
|
*/
|
|
|
|
function getState(name) {
|
|
|
|
return process.env[`STATE_${name}`] || '';
|
|
|
|
}
|
|
|
|
exports.getState = getState;
|
2020-05-18 07:08:29 +00:00
|
|
|
//# sourceMappingURL=core.js.map
|
|
|
|
|
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 622:
|
|
|
|
/***/ (function(module) {
|
|
|
|
|
|
|
|
module.exports = require("path");
|
|
|
|
|
2020-10-07 21:06:49 +00:00
|
|
|
/***/ }),
|
|
|
|
|
|
|
|
/***/ 747:
|
|
|
|
/***/ (function(module) {
|
|
|
|
|
|
|
|
module.exports = require("fs");
|
|
|
|
|
2020-05-18 07:08:29 +00:00
|
|
|
/***/ })
|
|
|
|
|
|
|
|
/******/ });
|