goreleaser-action/dist/index.js

2 lines
259 KiB
JavaScript
Raw Normal View History

require('./sourcemap-register.js');(()=>{var t={7351:function(t,s,b){"use strict";var F=this&&this.__createBinding||(Object.create?function(t,s,b,F){if(F===undefined)F=b;Object.defineProperty(t,F,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,F){if(F===undefined)F=b;t[F]=s[b]});var R=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))F(s,t,b);R(s,t);return s};Object.defineProperty(s,"__esModule",{value:true});s.issue=s.issueCommand=void 0;const L=T(b(2037));const B=b(5278);function issueCommand(t,s,b){const F=new Command(t,s,b);process.stdout.write(F.toString()+L.EOL)}s.issueCommand=issueCommand;function issue(t,s=""){issueCommand(t,{},s)}s.issue=issue;const U="::";class Command{constructor(t,s,b){if(!t){t="missing.command"}this.command=t;this.properties=s;this.message=b}toString(){let t=U+this.command;if(this.properties&&Object.keys(this.properties).length>0){t+=" ";let s=true;for(const b in this.properties){if(this.properties.hasOwnProperty(b)){const F=this.properties[b];if(F){if(s){s=false}else{t+=","}t+=`${b}=${escapeProperty(F)}`}}}}t+=`${U}${escapeData(this.message)}`;return t}}function escapeData(t){return B.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(t){return B.toCommandValue(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},2186:function(t,s,b){"use strict";var F=this&&this.__createBinding||(Object.create?function(t,s,b,F){if(F===undefined)F=b;Object.defineProperty(t,F,{enumerable:true,get:function(){return s[b]}})}:function(t,s,b,F){if(F===undefined)F=b;t[F]=s[b]});var R=this&&this.__setModuleDefault||(Object.create?function(t,s){Object.defineProperty(t,"default",{enumerable:true,value:s})}:function(t,s){t["default"]=s});var T=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var s={};if(t!=null)for(var b in t)if(b!=="default"&&Object.hasOwnProperty.call(t,b))F(s,t,b);R(s,t);return s};var L=this&&this.__awaiter||function(t,s,b,F){function adopt(t){return t instanceof b?t:new b((function(s){s(t)}))}return new(b||(b=Promise))((function(b,R){function fulfilled(t){try{step(F.next(t))}catch(t){R(t)}}function rejected(t){try{step(F["throw"](t))}catch(t){R(t)}}function step(t){t.done?b(t.value):adopt(t.value).then(fulfilled,rejected)}step((F=F.apply(t,s||[])).next())}))};Object.defineProperty(s,"__esModule",{value:true});s.getIDToken=s.getState=s.saveState=s.group=s.endGroup=s.startGroup=s.info=s.notice=s.warning=s.error=s.debug=s.isDebug=s.setFailed=s.setCommandEcho=s.setOutput=s.getBooleanInput=s.getMultilineInput=s.getInput=s.addPath=s.setSecret=s.exportVariable=s.ExitCode=void 0;const B=b(7351);const U=b(717);const q=b(5278);const H=T(b(2037));const W=T(b(1017));const V=b(8041);var G;(function(t){t[t["Success"]=0]="Success";t[t["Failure"]=1]="Failure"})(G=s.ExitCode||(s.ExitCode={}));function exportVariable(t,s){const b=q.toCommandValue(s);process.env[t]=b;const F=process.env["GITHUB_ENV"]||"";if(F){const s="_GitHubActionsFileCommandDelimeter_";const F=`${t}<<${s}${H.EOL}${b}${H.EOL}${s}`;U.issueCommand("ENV",F)}else{B.issueCommand("set-env",{name:t},b)}}s.exportVariable=exportVariable;function setSecret(t){B.issueCommand("add-mask",{},t)}s.setSecret=setSecret;function addPath(t){const s=process.env["GITHUB_PATH"]||"";if(s){U.issueCommand("PATH",t)}else{B.issueCommand("add-path",{},t)}process.env["PATH"]=`${t}${W.delimiter}${process.env["PATH"]}`}s.addPath=addPath;function getInput(t,s){const b=process.env[`INPUT_${t.replace(/ /g,"_").toUpperCase()}`]||"";if(s&&s.required&&!b){throw new Error(`Input required and not supplied: ${t}`)}if(s&&s.trimWhitespace===false){return b}return b.trim()}s.getInput=getInput;function getMultilineInput(t,s){const b=getInput(t,s).split("\n").filter((t=>t!==""));return b}s.getMultili
//# sourceMappingURL=index.js.map