action-setup/dist/index.js

1 line
75 KiB
JavaScript
Raw Normal View History

2020-05-09 20:13:46 +08:00
module.exports=function(r,n){"use strict";var e={};function __webpack_require__(n){if(e[n]){return e[n].exports}var i=e[n]={i:n,l:false,exports:{}};r[n].call(i.exports,i,i.exports,__webpack_require__);i.l=true;return i.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(803)}return startup()}({0:function(r,n){"use strict";Object.defineProperty(n,"__esModule",{value:true});n.ref="301414cec74a2b6b63c95b42f2ad1790ccb980ed";n.url=`https://raw.githubusercontent.com/pnpm/self-installer/${n.ref}/install.js`;n.default=n.url},34:function(r){r.exports=require("https")},87:function(r){r.exports=require("os")},89:function(r,n,e){"use strict";var i=this&&this.__awaiter||function(r,n,e,i){function adopt(r){return r instanceof e?r:new e(function(n){n(r)})}return new(e||(e=Promise))(function(e,o){function fulfilled(r){try{step(i.next(r))}catch(r){o(r)}}function rejected(r){try{step(i["throw"](r))}catch(r){o(r)}}function step(r){r.done?e(r.value):adopt(r.value).then(fulfilled,rejected)}step((i=i.apply(r,n||[])).next())})};var o=this&&this.__importStar||function(r){if(r&&r.__esModule)return r;var n={};if(r!=null)for(var e in r)if(Object.hasOwnProperty.call(r,e))n[e]=r[e];n["default"]=r;return n};Object.defineProperty(n,"__esModule",{value:true});const u=e(486);const f=o(e(87));const t=o(e(622));var c;(function(r){r[r["Success"]=0]="Success";r[r["Failure"]=1]="Failure"})(c=n.ExitCode||(n.ExitCode={}));function exportVariable(r,n){const e=u.toCommandValue(n);process.env[r]=e;u.issueCommand("set-env",{name:r},e)}n.exportVariable=exportVariable;function setSecret(r){u.issueCommand("add-mask",{},r)}n.setSecret=setSecret;function addPath(r){u.issueCommand("add-path",{},r);process.env["PATH"]=`${r}${t.delimiter}${process.env["PATH"]}`}n.addPath=addPath;function getInput(r,n){const e=process.env[`INPUT_${r.replace(/ /g,"_").toUpperCase()}`]||"";if(n&&n.required&&!e){throw new Error(`Input required and not supplied: ${r}`)}return e.trim()}n.getInput=getInput;function setOutput(r,n){u.issueCommand("set-output",{name:r},n)}n.setOutput=setOutput;function setCommandEcho(r){u.issue("echo",r?"on":"off")}n.setCommandEcho=setCommandEcho;function setFailed(r){process.exitCode=c.Failure;error(r)}n.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}n.isDebug=isDebug;function debug(r){u.issueCommand("debug",{},r)}n.debug=debug;function error(r){u.issue("error",r instanceof Error?r.toString():r)}n.error=error;function warning(r){u.issue("warning",r instanceof Error?r.toString():r)}n.warning=warning;function info(r){process.stdout.write(r+f.EOL)}n.info=info;function startGroup(r){u.issue("group",r)}n.startGroup=startGroup;function endGroup(){u.issue("endgroup")}n.endGroup=endGroup;function group(r,n){return i(this,void 0,void 0,function*(){startGroup(r);let e;try{e=yield n()}finally{endGroup()}return e})}n.group=group;function saveState(r,n){u.issueCommand("save-state",{name:r},n)}n.saveState=saveState;function getState(r){return process.env[`STATE_${r}`]||""}n.getState=getState},90:function(r,n,e){"use strict";var i=e(205);function resolveJavascriptRegExp(r){if(r===null)return false;if(r.length===0)return false;var n=r,e=/\/([gim]*)$/.exec(r),i="";if(n[0]==="/"){if(e)i=e[1];if(i.length>3)return false;if(n[n.length-i.length-1]!=="/")return false}return true}function constructJavascriptRegExp(r){var n=r,e=/\/([gim]*)$/.exec(r),i="";if(n[0]==="/"){if(e)i=e[1];n=n.slice(1,n.length-i.length-1)}return new RegExp(n,i)}function representJavascriptRegExp(r){var n="/"+r.source+"/";if(r.global)n+="g";if(r.multiline)n+="m";if(r.ignoreCase)n+="i";return n}function isRegExp(r){return Object.prototype.toString.call(r)==="[object RegExp]"}r.exports=new i("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:resolveJavascriptRegExp,construct:constructJavascriptRegExp,predicate:isRegExp,represent:representJavascriptRegExp})},129:function(r){r.exports=require("child_process")},147:function(r,n,e){"use strict";var i=e(205);r.exports=new i("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==n