mirror of
https://github.com/gradle/actions.git
synced 2026-10-16 19:57:12 +08:00
[bot] Update dist directory
This commit is contained in:
8 files changed
+90
-90
No files matched your search
+19
-19
@@ -43,7 +43,7 @@ ${A.toString(16)}\r
|
||||
${n.count} ${n.noun} ${n.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};$ie.exports=rO});var mN=C((xzt,roe)=>{"use strict";var Zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:k7e}=_t(),v7e=ym();toe()===void 0&&eoe(new v7e);function eoe(t){if(!t||typeof t.dispatch!="function")throw new k7e("Argument agent must implement Agent");Object.defineProperty(globalThis,Zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function toe(){return globalThis[Zie]}roe.exports={setGlobalDispatcher:eoe,getGlobalDispatcher:toe}});var EN=C((Dzt,noe)=>{"use strict";noe.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var ioe=C((kzt,soe)=>{"use strict";var _7e=KS();soe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new _7e(r,o,s,i);return r(a,c)}}});var aoe=C((vzt,ooe)=>{"use strict";var F7e=aN();ooe.exports=t=>e=>function(n,s){return e(n,new F7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Aoe=C((_zt,coe)=>{"use strict";var M7e=dt(),{InvalidArgumentError:L7e,RequestAbortedError:U7e}=_t(),P7e=EN(),nO=class extends P7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new L7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=M7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new U7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function O7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new nO({maxSize:i},s);return e(n,o)}}coe.exports=O7e});var doe=C((Fzt,loe)=>{"use strict";var{isIP:H7e}=Q("node:net"),{lookup:G7e}=Q("node:dns"),q7e=EN(),{InvalidArgumentError:km,InformationalError:Y7e}=_t(),uoe=Math.pow(2,31)-1,sO=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Y7e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){G7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===uoe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===uoe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new iO(this,e,r)}},iO=class extends q7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
`.trim())}};$ie.exports=rO});var mN=C((xzt,roe)=>{"use strict";var Zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:k7e}=_t(),v7e=ym();toe()===void 0&&eoe(new v7e);function eoe(t){if(!t||typeof t.dispatch!="function")throw new k7e("Argument agent must implement Agent");Object.defineProperty(globalThis,Zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function toe(){return globalThis[Zie]}roe.exports={setGlobalDispatcher:eoe,getGlobalDispatcher:toe}});var EN=C((Dzt,noe)=>{"use strict";noe.exports=class{#e;constructor(e){if(typeof e!="object"||e===null)throw new TypeError("handler must be an object");this.#e=e}onConnect(...e){return this.#e.onConnect?.(...e)}onError(...e){return this.#e.onError?.(...e)}onUpgrade(...e){return this.#e.onUpgrade?.(...e)}onResponseStarted(...e){return this.#e.onResponseStarted?.(...e)}onHeaders(...e){return this.#e.onHeaders?.(...e)}onData(...e){return this.#e.onData?.(...e)}onComplete(...e){return this.#e.onComplete?.(...e)}onBodySent(...e){return this.#e.onBodySent?.(...e)}}});var ioe=C((kzt,soe)=>{"use strict";var _7e=KS();soe.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new _7e(r,o,s,i);return r(a,c)}}});var aoe=C((vzt,ooe)=>{"use strict";var F7e=aN();ooe.exports=t=>e=>function(n,s){return e(n,new F7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Aoe=C((_zt,coe)=>{"use strict";var M7e=dt(),{InvalidArgumentError:L7e,RequestAbortedError:U7e}=_t(),P7e=EN(),nO=class extends P7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new L7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=M7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new U7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function O7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new nO({maxSize:i},s);return e(n,o)}}coe.exports=O7e});var doe=C((Fzt,loe)=>{"use strict";var{isIP:H7e}=Q("node:net"),{lookup:G7e}=Q("node:dns"),q7e=EN(),{InvalidArgumentError:km,InformationalError:Y7e}=_t(),uoe=Math.pow(2,31)-1,sO=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Y7e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){G7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===uoe?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===uoe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new iO(this,e,r)}},iO=class extends q7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${i}`;break;case"retry":Yce(i)&&(r[s]=i);break;case"id":Vce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Yce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Vce(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};Wce.exports={EventSourceStream:zO}});var tAe=C((djt,eAe)=>{"use strict";var{pipeline:Xje}=Q("node:stream"),{fetching:Zje}=fy(),{makeRequest:eKe}=Fm(),{webidl:bu}=Zn(),{EventSourceStream:tKe}=Jce(),{parseMIMEType:rKe}=ei(),{createFastMessageEvent:nKe}=Hm(),{isNetworkError:zce}=dy(),{delay:sKe}=WO(),{kEnumerableProperty:ff}=dt(),{environmentSettingsObject:jce}=vi(),Kce=!1,$ce=3e3,Ty=0,Xce=1,xy=2,iKe="anonymous",oKe="use-credentials",Wm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Kce||(Kce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:$ce};let s=jce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=iKe;r.withCredentials&&(o=oKe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jce.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=eKe(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{zce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(zce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?rKe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Xce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new tKe({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(nKe(c.type,c.options))}});Xje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Zje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await sKe(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Xce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Wm,Zce);Object.defineProperties(Wm.prototype,Zce);Object.defineProperties(Wm.prototype,{close:ff,onerror:ff,onmessage:ff,onopen:ff,readyState:ff,url:ff,withCredentials:ff});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);eAe.exports={EventSource:Wm,defaultReconnectionTime:$ce}});var oT=C((hjt,je)=>{"use strict";var aKe=Cm(),rAe=vI(),cKe=Im(),AKe=Zne(),uKe=ym(),lKe=gP(),dKe=bse(),hKe=Rse(),nAe=_t(),iT=dt(),{InvalidArgumentError:sT}=nAe,Jm=pie(),fKe=FI(),gKe=KP(),pKe=Xie(),mKe=ZP(),EKe=LP(),CKe=aN(),{getGlobalDispatcher:sAe,setGlobalDispatcher:IKe}=mN(),yKe=EN(),BKe=KS(),bKe=$S();Object.assign(rAe.prototype,Jm);je.exports.Dispatcher=rAe;je.exports.Client=aKe;je.exports.Pool=cKe;je.exports.BalancedPool=AKe;je.exports.Agent=uKe;je.exports.ProxyAgent=lKe;je.exports.EnvHttpProxyAgent=dKe;je.exports
Line truncated
|
||||
%s`,M,M,I,n);var V=I.type==="*"?F3:I.type==="?"?_3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),Z=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==xT&&(ke="$");var et=z+Z+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===xT)return[n,s];if(!s)return eZe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=ZXe;function ZXe(){if(this.regexp||this.regexp===!1)return this.regexp;var t=this.set;if(!t.length)return this.regexp=!1,this.regexp;var e=this.options,r=e.noglobstar?F3:e.dot?VXe:WXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?tZe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.prototype.match=function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Yue),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};ln.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===If)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function eZe(t){return t.replace(/\\(.)/g,"$1")}function tZe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var e0=C((I$t,$ue)=>{"use strict";var AZe="2.0.0",uZe=Number.MAX_SAFE_INTEGER||9007199254740991,lZe=16,dZe=250,hZe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];$ue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:lZe,MAX_SAFE_BUILD_LENGTH:dZe,MAX_SAFE_INTEGER:uZe,RELEASE_TYPES:hZe,SEMVER_SPEC_VERSION:AZe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((y$t,Xue)=>{"use strict";var fZe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Xue.exports=fZe});var t0=C((Pc,Zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:L3,MAX_SAFE_BUILD_LENGTH:gZe,MAX_LENGTH:pZe}=e0(),mZe=Jy();Pc=Zue.exports={};var EZe=Pc.re=[],CZe=Pc.safeRe=[],me=Pc.src=[],IZe=Pc.safeSrc=[],Ee=Pc.t={},yZe=0,U3="[a-zA-Z0-9-]",BZe=[["\\s",1],["\\d",pZe],[U3,gZe]],bZe=t=>{for(let[e,r]of BZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
|
||||
`).join(`
|
||||
@@ -202,11 +202,11 @@ ${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return fvt(e,r).catch(n=>{th
|
||||
Source:
|
||||
`+b);let[,F]=S;return F.replace(/\s/g,"").split(P1).map(G=>G.replace(O1,"").trim())}function II(w,b){var S={};return Object.keys(w).forEach(F=>{var G=w[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),S[F]=Y.concat(Y.length>0?re:G);else if(j)S[F]=G;else{if(Y=CI(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(re)}function re(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(G)(...Lt)}}),mI(S,b)}class yI{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):BI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):BI(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function BI(w,b){w.length=1,w.head=w.tail=b}function Wp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function re(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function Bt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var Br,kn;function So(Hh,...xI){if(Hh)return Ye?kn(Hh):Br();if(xI.length<=1)return Br(xI[0]);Br(xI)}var Kp=Ut._createTaskItem(qe,Ye?So:Nt||So);if(be?Ut._tasks.unshift(Kp):Ut._tasks.push(Kp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Hh,xI)=>{Br=Hh,kn=xI})}function wo(qe){return function(be,...Ye){G-=1;for(var Nt=0,Br=qe.length;Nt<Br;Nt++){var kn=qe[Nt],So=Y.indexOf(kn);So===0?Y.shift():So>0&&Y.splice(So,1),kn.callback(be,...Ye),be!=null&&Bt("error",be,kn.data)}G<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function jp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Oh=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{re(qe,(Br,kn)=>{if(Br)return Nt(Br);Ye(kn)})});Se(qe),j(qe,be)};var TI=!1,Ut={_tasks:new yI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?jp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!TI){for(TI=!0;!Ut.paused&&G<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var Br=Ut._tasks.shift();qe.push(Br),Y.push(Br),be.push(Br.data)}G+=1,Ut._tasks.length===0&&Bt("empty"),G===Ut.concurrency&&Bt("saturated");var kn=te(wo(qe));F(be,kn)}TI=!1}},length(){return Ut._tasks.length},running(){return G},workersList(){return Y},idle(){return Ut._tasks.length+G===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:Oh("saturated")},unsaturated:{writable:!1,value:Oh("unsaturated")},empty:{writable:!1,value:Oh("empty")},drain:{writable:!1,value:Oh("drain")},error:{writable:!1,value:Oh("error")}}),Ut}function bI(w,b){return Wp(w,1,b)}function Jp(w,b,S){return Wp(w,b,S)}function Qo(w,b,S,F){F=V(F);var G=E(S);return Zs(w,(Y,J,j)=>{G(b,Y,(re,Se)=>{b=Se,j(re)})},Y=>F(Y,b))}var xa=m(Qo,4);function zp(...w){var b=w.map(E);return function(...S){var F=this,G=S[S.length-1];return typeof G=="function"?S.pop():G=cu(),xa(b,S,(Y,J,j)=>{J.apply(F,Y.concat((re,...Se)=>{j(re,Se)}))},(Y,J)=>G(Y,...J)),G[au]}}function H1(...w){return zp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var H=m(we,4);function T(w,b,S,F){var G=E(S);return H(w,b,(Y,J)=>{G(Y,(j,...re)=>j?J(j):J(j,re))},(Y,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(Y,j)})}var q=m(T,4);function K(w,b,S){return q(w,1/0,b,S)}var X=m(K,3);function oe(w,b,S){retur
Line truncated
|
||||
GFS4: `),console.error(t)});Fr[is]||(L2e=global[is]||[],P2e(Fr,L2e),Fr.close=(function(t){function e(r,n){return t.call(Fr,r,function(s){s||U2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,sF,{value:t}),e})(Fr.close),Fr.closeSync=(function(t){function e(r){t.apply(Fr,arguments),U2e()}return Object.defineProperty(e,sF,{value:t}),e})(Fr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fp(Fr[is]),Q("assert").equal(Fr[is].length,0)}));var L2e;global[is]||P2e(global,Fr[is]);rK.exports=eK(LFt(Fr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Fr.__patched&&(rK.exports=eK(Fr),Fr.__patched=!0);function eK(t){FFt(t),t.gracefulify=eK,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,Z){return typeof z=="function"&&(Z=z,z=null),te(v,z,Z);function te(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?IC([te,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=0),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,Z){typeof z=="function"&&(Z=z,z=null);var te=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return te(v,z,Z);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?IC([te,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=MFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,Z){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=Z,v.emit("open",Z),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,Z){z?(v.destroy(),v.emit("error",z)):(v.fd=Z,v.emit("open",Z))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,Z,te){return typeof Z=="function"&&(te=Z,Z=null),ce(v,z,Z,te);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,En){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?IC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function IC(t){fp("ENQUEUE",t[0].name,t[1]),Fr[is].push(t),tK()}var nF;function U2e(){for(var t=Date.now(),e=0;e<Fr[is].length;++e)Fr[is][e].length>2&&(Fr[is][e][3]=t,Fr[is][e][4]=t);tK()}function tK(){if(clearTimeout(nF),nF=void 0,Fr[is].length!==0){var t=Fr[is].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)fp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){fp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(fp("RETRY",e.name,r),e.apply(null,r.concat([s]))):Fr[is].push(t)}nF===void 0&&(nF=setTimeout(tK,0))}}});var iF=C((XSr,O2e)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable=t=>JA(t)&&t.readable!==!1&&typeo
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};E_e.exports={AggregateError:UK,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var PK=C((cTr,C_e)=>{"use strict";C_e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=C((ATr,B_e)=>{"use strict";var{format:oOt,inspect:QF}=PK(),{AggregateError:aOt}=Rr(),cOt=globalThis.AggregateError||aOt,AOt=Symbol("kIsNodeError"),uOt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],lOt=/^([A-Z][a-z0-9]*)+$/,dOt="__node_internal_",wF={};function mp(t,e){if(!t)throw new wF.ERR_INTERNAL_ASSERTION(e)}function I_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function hOt(t,e,r){if(typeof e=="function")return mp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:oOt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(hOt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[AOt]=!0,wF[t]=n}function y_e(t){let e=dOt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function fOt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new cOt([e,t],e.message);return r.code=e.code,r}return t||e}var OK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new wF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)mp(typeof c=="string","All expected entries have to be of type string"),uOt.includes(c)?s.push(c.toLowerCase()):lOt.test(c)?i.push(c):(mp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};E_e.exports={AggregateError:UK,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var PK=C((cTr,C_e)=>{"use strict";C_e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=C((ATr,B_e)=>{"use strict";var{format:oOt,inspect:QF}=PK(),{AggregateError:aOt}=Rr(),cOt=globalThis.AggregateError||aOt,AOt=Symbol("kIsNodeError"),uOt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],lOt=/^([A-Z][a-z0-9]*)+$/,dOt="__node_internal_",wF={};function mp(t,e){if(!t)throw new wF.ERR_INTERNAL_ASSERTION(e)}function I_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function hOt(t,e,r){if(typeof e=="function")return mp(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:oOt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(hOt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[AOt]=!0,wF[t]=n}function y_e(t){let e=dOt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function fOt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new cOt([e,t],e.message);return r.code=e.code,r}return t||e}var OK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new wF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let c of e)mp(typeof c=="string","All expected entries have to be of type string"),uOt.includes(c)?s.push(c.toLowerCase()):lOt.test(c)?i.push(c):(mp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
|
||||
`)),e.linkname&&(r+=CZ(" linkpath="+e.linkname+`
|
||||
`));let n=e.pax;if(n)for(let s in n)r+=CZ(" "+s+"="+n[s]+`
|
||||
`);return kt.from(r)};aI.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};aI.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,kh(e.mode&T7t,6),100),kt.write(r,kh(e.uid,6),108),kt.write(r,kh(e.gid,6),116),F7t(e.size,r,124),kt.write(r,kh(e.mtime.getTime()/1e3|0,11),136),r[156]=ZM+v7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(Y3e,r,R1),kt.copy(w7t,r,IZ),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,kh(e.devmajor||0,6),329),kt.write(r,kh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,kh(W3e(r),6),148),r)};aI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-ZM,i=oI(e,0,100,r),o=Dh(e,100,8),a=Dh(e,108,8),c=Dh(e,116,8),A=Dh(e,124,12),u=Dh(e,136,12),l=k7t(s),d=e[157]===0?null:oI(e,157,100,r),h=oI(e,265,32),f=oI(e,297,32),g=Dh(e,329,8),E=Dh(e,337,8),m=W3e(e);if(m===256)return null;if(m!==Dh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(x7t(e))e[345]&&(i=oI(e,345,155,r)+"/"+i);else if(!R7t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function x7t(t){return kt.equals(Y3e,t.subarray(R1,R1+6))}function R7t(t){return kt.equals(S7t,t.subarray(R1,R1+6))&&kt.equals(N7t,t.subarray(IZ,IZ+2))}function D7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function k7t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function v7t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function V3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function W3e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function kh(t,e){return t=t.toString(8),t.length>e?Q7t.slice(0,e)+" ":b7t.slice(0,e-t.length)+t+" "}function _7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function F7t(t,e,r){t.toString(8).length>11?_7t(t,e,r):kt.write(e,kh(t,11),r)}function M7t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Dh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return M7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=D7t(V3e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function oI(t,e,r,n){return kt.toString(t.subarray(e,V3e(t,0,e,e+r)),n)}function CZ(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var $3e=C((FRr,K3e)=>{var{Writable:L7t,Readable:U7t,getStreamError:J3e}=EZ(),P7t=nZ(),z3e=tI(),cI=yZ(),O7t=z3e.alloc(0),bZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new P7t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return O7t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return z3e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},QZ=class extends U7t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(J3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=j3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},wZ=class extends L7t{constru
Line truncated
|
||||
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function QAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",uS(t,e));process.stdout.write(s3.EOL),Da("set-output",{name:t},wc(e))}function ed(t){process.exitCode=n3.Failure,Yi(t)}function qa(){return process.env.RUNNER_DEBUG==="1"}function O(t){Da("debug",{},t)}function Yi(t,e={}){Da("error",aS(e),t instanceof Error?t.toString():t)}function ze(t,e={}){Da("warning",aS(e),t instanceof Error?t.toString():t)}function wAe(t,e={}){Da("notice",aS(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+s3.EOL)}function SAe(t){IL("group",t)}function NAe(){IL("endgroup")}function gT(t,e){return A$e(this,void 0,void 0,function*(){SAe(t);let r;try{r=yield e()}finally{NAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",uS(t,e));Da("save-state",{name:t},wc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as Xz from"fs";import*as Zz from"path";import*as G_ from"os";import{readFileSync as u$e,existsSync as l$e}from"fs";import{EOL as d$e}from"os";var zm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(l$e(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(u$e(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${d$e}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var A3=ge(kAe(),1),vAe=ge(oT(),1),w$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function _Ae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function FAe(t){return new A3.HttpClient().getAgent(t)}function S$e(t){return new A3.HttpClient().getAgentDispatcher(t)}function MAe(t){let e=S$e(t);return(n,s)=>w$e(this,void 0,void 0,function*(){return(0,vAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function LAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function u3(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function td(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function BT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>BT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function UAe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function PAe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var OAe=Function.bind,HAe=OAe.bind(OAe);function GAe(t,e,r){let n=HAe(PAe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=HAe(UAe,null).
Line truncated
|
||||
`);return kt.from(r)};aI.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};aI.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,kh(e.mode&T7t,6),100),kt.write(r,kh(e.uid,6),108),kt.write(r,kh(e.gid,6),116),F7t(e.size,r,124),kt.write(r,kh(e.mtime.getTime()/1e3|0,11),136),r[156]=ZM+v7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(Y3e,r,R1),kt.copy(w7t,r,IZ),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,kh(e.devmajor||0,6),329),kt.write(r,kh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,kh(W3e(r),6),148),r)};aI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-ZM,i=oI(e,0,100,r),o=Dh(e,100,8),a=Dh(e,108,8),c=Dh(e,116,8),A=Dh(e,124,12),u=Dh(e,136,12),l=k7t(s),d=e[157]===0?null:oI(e,157,100,r),h=oI(e,265,32),f=oI(e,297,32),g=Dh(e,329,8),E=Dh(e,337,8),m=W3e(e);if(m===256)return null;if(m!==Dh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(x7t(e))e[345]&&(i=oI(e,345,155,r)+"/"+i);else if(!R7t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function x7t(t){return kt.equals(Y3e,t.subarray(R1,R1+6))}function R7t(t){return kt.equals(S7t,t.subarray(R1,R1+6))&&kt.equals(N7t,t.subarray(IZ,IZ+2))}function D7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function k7t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function v7t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function V3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function W3e(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function kh(t,e){return t=t.toString(8),t.length>e?Q7t.slice(0,e)+" ":b7t.slice(0,e-t.length)+t+" "}function _7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function F7t(t,e,r){t.toString(8).length>11?_7t(t,e,r):kt.write(e,kh(t,11),r)}function M7t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function Dh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return M7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=D7t(V3e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function oI(t,e,r,n){return kt.toString(t.subarray(e,V3e(t,0,e,e+r)),n)}function CZ(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var $3e=C((FRr,K3e)=>{var{Writable:L7t,Readable:U7t,getStreamError:J3e}=EZ(),P7t=nZ(),z3e=tI(),cI=yZ(),O7t=z3e.alloc(0),bZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new P7t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return O7t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return z3e.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},QZ=class extends U7t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(J3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=j3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},wZ=class extends L7t{constru
Line truncated
|
||||
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function QAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",uS(t,e));process.stdout.write(s3.EOL),Da("set-output",{name:t},wc(e))}function ed(t){process.exitCode=n3.Failure,Yi(t)}function qa(){return process.env.RUNNER_DEBUG==="1"}function O(t){Da("debug",{},t)}function Yi(t,e={}){Da("error",aS(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Da("warning",aS(e),t instanceof Error?t.toString():t)}function wAe(t,e={}){Da("notice",aS(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+s3.EOL)}function SAe(t){IL("group",t)}function NAe(){IL("endgroup")}function gT(t,e){return A$e(this,void 0,void 0,function*(){SAe(t);let r;try{r=yield e()}finally{NAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",uS(t,e));Da("save-state",{name:t},wc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as Xz from"fs";import*as Zz from"path";import*as G_ from"os";import{readFileSync as u$e,existsSync as l$e}from"fs";import{EOL as d$e}from"os";var zm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(l$e(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(u$e(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${d$e}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var A3=ge(kAe(),1),vAe=ge(oT(),1),w$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function _Ae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function FAe(t){return new A3.HttpClient().getAgent(t)}function S$e(t){return new A3.HttpClient().getAgentDispatcher(t)}function MAe(t){let e=S$e(t);return(n,s)=>w$e(this,void 0,void 0,function*(){return(0,vAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function LAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function u3(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function td(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function BT(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>BT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function UAe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(c=>(a=c,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function PAe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var OAe=Function.bind,HAe=OAe.bind(OAe);function GAe(t,e,r){let n=HAe(PAe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=HAe(UAe,null).
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}var fXe=class extends Error{constructor(t,e,r){super(hXe(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},gXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],pXe=["query","method","url"],hue=/\/api\/v3\/?$/;function mXe(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let o in r)if(pXe.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>gXe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return hue.test(i)&&(s.url=i.replace(hue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new fXe(s,a,o.data)}return o.data.data})}function C3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>mXe(r,s,i),{defaults:C3.bind(null,r),endpoint:r.endpoint})}var mKt=C3(Py,{headers:{"user-agent":`octokit-graphql.js/${dXe} ${td()}`},method:"POST",url:"/graphql"});function fue(t){return C3(t,{method:"POST",url:"/graphql"})}var I3="(?:[a-zA-Z0-9_-]+)",gue="\\.",pue=new RegExp(`^${I3}${gue}${I3}${gue}${I3}$`),EXe=pue.test.bind(pue);async function CXe(t){let e=EXe(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}function IXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function yXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=IXe(t),e(s)}var mue=function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(CXe.bind(null,e),{hook:yXe.bind(null,e)})};var y3="7.0.6";var Eue=()=>{},BXe=console.warn.bind(console),bXe=console.error.bind(console);function QXe(t={}){return typeof t.debug!="function"&&(t.debug=Eue),typeof t.info!="function"&&(t.info=Eue),typeof t.warn!="function"&&(t.warn=BXe),typeof t.error!="function"&&(t.error=bXe),t}var Cue=`octokit-core.js/${y3} ${td()}`,wT=class{static VERSION=y3;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new qAe.Collection,n={baseUrl:Py.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Cue}`:Cue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=fue(this.request).defaults(n),this.log=QXe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=mue(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var B3="17.0.0";var wXe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secret_name}"],createOrgVaria
Line truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
@@ -243,14 +243,14 @@ ${l}:${decodeURIComponent(A[l])}`}return a}return{name:hat,async sendRequest(i,o
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function QAt(t,e){if(t=Wf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Xa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Za(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:hR;if(t.snapshotTime&&e<"2018-11-09")throw RangeError("'version' must be >= '2018-11-09' when providing 'snapshotTime'.");if(t.blobName===void 0&&t.snapshotTime)throw RangeError("Must provide 'blobName' when providing 'snapshotTime'.");if(t.versionId&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'versionId'.");if(t.blobName===void 0&&t.versionId)throw RangeError("Must provide 'blobName' when providing 'versionId'.");if(t.permissions&&t.permissions.setImmutabilityPolicy&&e<"2020-08-04")throw RangeError("'version' must be >= '2020-08-04' when provided 'i' permission.");if(t.permissions&&t.permissions.deleteVersion&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'x' permission.");if(t.permissions&&t.permissions.permanentDelete&&e<"2019-10-10")throw RangeError("'version' must be >= '2019-10-10' when providing 'y' permission.");if(t.permissions&&t.permissions.tag&&e<"2019-12-12")throw RangeError("'version' must be >= '2019-12-12' when providing 't' permission.");if(e<"2020-02-10"&&t.permissions&&(t.permissions.move||t.permissions.execute))throw RangeError("'version' must be >= '2020-02-10' when providing the 'm' or 'e' permission.");if(e<"2021-04-10"&&t.permissions&&t.permissions.filterByTags)throw RangeError("'version' must be >= '2021-04-10' when providing the 'f' permission.");if(e<"2020-02-10"&&(t.preauthorizedAgentObjectId||t.correlationId))throw RangeError("'version' must be >= '2020-02-10' when providing 'preauthorizedAgentObjectId' or 'correlationId'.");if(t.encryptionScope&&e<"2020-12-06")throw RangeError("'version' must be >= '2020-12-06' when provided 'encryptionScope' in SAS.");return t.version=e,t}var WB=class{_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=h0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>_e(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==za||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==za||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=_e(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>_e(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==za||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==za||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab
Line truncated
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};k0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var JAt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},m9=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function rme(t,e,r){return JAt(this,void 0,void 0,function*(){var n;let s=new ec(t),i=s.getBlockBlobClient(),o=new m9((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new cD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as sme from"buffer";import*as dA from"fs";import*as ime from"stream";import*as ome from"util";var AD=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function uD(t){return t?t>=200&&t<300:!1}function zAt(t){return t?t>=500:!0}function jAt(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function KAt(t){return AD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function nme(t,e,r){return AD(this,arguments,void 0,function*(n,s,i,o=VT,a=WT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!zAt(d)))return l;if(d&&(h=jAt(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield KAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Mc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function v0(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.message.statusCode,s,i)})}var Jo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function $At(t,e){return Jo(this,void 0,void 0,function*(){yield ome.promisify(ime.pipeline)(t.message,e)})}var lD=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,O(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3)
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function B9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new rut(t),s=ume(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield cme(t,e,s):s.concurrentBlobDownloads?yield ame(t,e,s):yield dD(t,e):yield dD(t,e)})}function Ime(t,e,r){return pi(this,void 0,void 0,function*(){let n=y9(),s=s0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function Eme(t,e){return`bytes ${t}-${e}/*`}function out(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Eme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Eme(n,s)},o=yield v0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!uD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function aut(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=_0.openSync(r,"r"),a=E9(n),c=a8("uploadConcurrency",a.uploadConcurrency),A=a8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield out(t,i,()=>_0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{_0.closeSync(o)}})}function cut(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function b9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(E9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield rme(r,e,n)}else{let i=y9();O("Upload cache"),yield aut(i,t,e,n),O("Commiting cache");let o=Oc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield cut(i,t,o);if(!uD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var h0e=ge(fG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var EG=ge(At(),1),CG=ge(At(),1),u0e=ge(At(),1),l0e=ge(At(),1),d0e=ge(At(),1);var gG=ge(At(),1),pG=ge(At(),1),a0e=ge(At(),1),c0e=ge(At(),1),A0e=ge(At(),1),mG=class extends A0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,c0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,a0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?pG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,gG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,gG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},ZD=new mG;var IG=class extends d0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>ZD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,l0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,u0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(ZD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?CG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,EG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)ZD.internalBinaryWrite(e.scope[i],r.tag(2,EG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?CG.UnknownFieldHandler.onWrite:s
Line truncated
|
||||
`));let n=yield FG(r,"create");yield MG(n,t)})}var K0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PG="cache write denied:",r2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},m0e=JT,n2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},s2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function E0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function OG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function C0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function i2(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),E0e(s);let u=I9();if(!dme(u)){$(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield wdt(s,i,o,a,c):yield Qdt(s,i,o,a,c)})}function Qdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)OG(h);let l=yield nB(),d="";try{let h;try{h=yield Cme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(m0e)?new n2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),od(l)),O(`Archive Path: ${d}`),yield B9(h.archiveLocation,d,a),qa()&&(yield Eb(d,l));let f=Oc(d);return $(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield LG(d,l),$("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Mc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):ze(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function wdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)OG(d);let l="";try{let d=_G(),h=yield nB(),f={key:i,restoreKeys:o,version:s0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(m0e)?new n2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?$(`Cache hit for restore-key: ${g.matchedKey}`):$(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),od(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield B9(g.signedDownloadUrl,l,a);let m=Oc(l);return $(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),qa()&&(yield Eb(l,h)),yield LG(l,h),$("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Mc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):ze(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function o2(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),E0e(n),OG(s);let c=I9();return hme(c)?a==="v2"?yield Ndt(n,s,i,o):yield Sdt(n,s,i,o):($(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Sdt(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield o8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,od(h));O(`Archive Path: ${m}`);try{yield UG(E,g,h),qa()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if(
Line truncated
|
||||
See ${r.getDocumentationLink()}`;I0e.push(n),ed(n)}function B0e(){Uc("deprecation-collector_deprecations",JSON.stringify(GG)),Uc("deprecation-collector_errors",JSON.stringify(I0e))}import*as A2 from"path";var b0e="GRADLE_ACTION_ID";var h2=".setup-gradle",yb=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return Rdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,Q0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return A2.resolve(Vu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new u2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var $0=class{isCacheDisabled(){return C0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=Ib("gradle-home-cache-cleanup");if(e!==void 0)return c2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return i3("gradle-home-cache-includes")}getCacheExcludes(){return i3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var nc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return Ib("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return Ib("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return Ib("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return Ib("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new u2}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(ze("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},u2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-p
Line truncated
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var JAt=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},m9=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function rme(t,e,r){return JAt(this,void 0,void 0,function*(){var n;let s=new ec(t),i=s.getBlockBlobClient(),o=new m9((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new cD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as sme from"buffer";import*as dA from"fs";import*as ime from"stream";import*as ome from"util";var AD=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function uD(t){return t?t>=200&&t<300:!1}function zAt(t){return t?t>=500:!0}function jAt(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function KAt(t){return AD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function nme(t,e,r){return AD(this,arguments,void 0,function*(n,s,i,o=VT,a=WT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!zAt(d)))return l;if(d&&(h=jAt(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield KAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Mc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function v0(t,e){return AD(this,arguments,void 0,function*(r,n,s=VT,i=WT){return yield nme(r,n,o=>o.message.statusCode,s,i)})}var Jo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function $At(t,e){return Jo(this,void 0,void 0,function*(){yield ome.promisify(ime.pipeline)(t.message,e)})}var lD=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,O(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);$(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3)
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function B9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new rut(t),s=ume(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield cme(t,e,s):s.concurrentBlobDownloads?yield ame(t,e,s):yield dD(t,e):yield dD(t,e)})}function Ime(t,e,r){return pi(this,void 0,void 0,function*(){let n=y9(),s=s0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function Eme(t,e){return`bytes ${t}-${e}/*`}function out(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Eme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Eme(n,s)},o=yield v0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!uD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function aut(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=_0.openSync(r,"r"),a=E9(n),c=a8("uploadConcurrency",a.uploadConcurrency),A=a8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield out(t,i,()=>_0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{_0.closeSync(o)}})}function cut(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function b9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(E9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield rme(r,e,n)}else{let i=y9();O("Upload cache"),yield aut(i,t,e,n),O("Commiting cache");let o=Oc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield cut(i,t,o);if(!uD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var h0e=ge(fG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var EG=ge(At(),1),CG=ge(At(),1),u0e=ge(At(),1),l0e=ge(At(),1),d0e=ge(At(),1);var gG=ge(At(),1),pG=ge(At(),1),a0e=ge(At(),1),c0e=ge(At(),1),A0e=ge(At(),1),mG=class extends A0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheScope",[{no:1,name:"scope",kind:"scalar",T:9},{no:2,name:"permission",kind:"scalar",T:3}])}create(e){let r={scope:"",permission:"0"};return globalThis.Object.defineProperty(r,c0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,a0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?pG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,gG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,gG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},ZD=new mG;var IG=class extends d0e.MessageType{constructor(){super("github.actions.results.entities.v1.CacheMetadata",[{no:1,name:"repository_id",kind:"scalar",T:3},{no:2,name:"scope",kind:"message",repeat:1,T:()=>ZD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,l0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,u0e.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(ZD.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?CG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,EG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)ZD.internalBinaryWrite(e.scope[i],r.tag(2,EG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?CG.UnknownFieldHandler.onWrite:s
Line truncated
|
||||
`));let n=yield FG(r,"create");yield MG(n,t)})}var K0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PG="cache write denied:",r2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},m0e=JT,n2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},s2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function E0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function OG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function C0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function i2(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),E0e(s);let u=I9();if(!dme(u)){$(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield wdt(s,i,o,a,c):yield Qdt(s,i,o,a,c)})}function Qdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)OG(h);let l=yield nB(),d="";try{let h;try{h=yield Cme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(m0e)?new n2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),od(l)),O(`Archive Path: ${d}`),yield B9(h.archiveLocation,d,a),qa()&&(yield Eb(d,l));let f=Oc(d);return $(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield LG(d,l),$("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Mc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):Ve(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function wdt(t,e,r,n){return K0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)OG(d);let l="";try{let d=_G(),h=yield nB(),f={key:i,restoreKeys:o,version:s0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(m0e)?new n2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?$(`Cache hit for restore-key: ${g.matchedKey}`):$(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),od(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield B9(g.signedDownloadUrl,l,a);let m=Oc(l);return $(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),qa()&&(yield Eb(l,h)),yield LG(l,h),$("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Mc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):Ve(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function o2(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),E0e(n),OG(s);let c=I9();return hme(c)?a==="v2"?yield Ndt(n,s,i,o):yield Sdt(n,s,i,o):($(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Sdt(t,e,r){return K0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield o8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,od(h));O(`Archive Path: ${m}`);try{yield UG(E,g,h),qa()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if(
Line truncated
|
||||
See ${r.getDocumentationLink()}`;I0e.push(n),ed(n)}function B0e(){Uc("deprecation-collector_deprecations",JSON.stringify(GG)),Uc("deprecation-collector_errors",JSON.stringify(I0e))}import*as A2 from"path";var b0e="GRADLE_ACTION_ID";var h2=".setup-gradle",yb=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return Rdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,Q0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return A2.resolve(Vu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new u2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var $0=class{isCacheDisabled(){return C0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=Ib("gradle-home-cache-cleanup");if(e!==void 0)return c2("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return i3("gradle-home-cache-includes")}getCacheExcludes(){return i3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var nc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return Ib("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return Ib("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return Ib("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return Ib("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new u2}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ve("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},u2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-p
Line truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let s=e.split(`
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Tb(i));return n.searchPaths.push(...JG(n.patterns)),n})}static stat(e,r,n){return tq(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield eE.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield eE.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield eE.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as rq from"crypto";import*as I2 from"fs";import*as X0e from"stream";import*as Z0e from"util";import*as eEe from"path";var zht=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},jht=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function tEe(t,e){return zht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=rq.createHash("sha256"),f=0;try{for(var g=!0,E=jht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${eEe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(I2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=rq.createHash("sha256");yield Z0e.promisify(X0e.pipeline)(I2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var rEe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function nq(t,e){return rEe(this,void 0,void 0,function*(){return yield E2.create(t,e)})}function nEe(t){return rEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield nq(e,{followSymbolicLinks:i});return tEe(o,r,s)})}import*as sq from"path";var Kht="Gradle User Home",iEe="BASIC_CACHE_PRIMARY_KEY",oEe="BASIC_CACHE_RESTORED_KEY",$ht="setup-java",aEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],y2=class{async restore(e,r){let n=cEe(e),s=await Xht();Uc(iEe,s);try{let i=await i2(n,s);i?(Uc(oEe,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){ze(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(iEe),i=My(oEe);if(n.readOnly)return{status:"read-only",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=cEe(e);try{return await o2(o,s)===-1?(ze(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):($(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return ze(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${aEe}], make sure you have checked out the target repository`);return`${$ht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var eft="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",tft="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",rft="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",b2=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function lEe(t){return t.getCacheProvider()==="external"?(B2(rft),new b2("external")):t.isCacheDisabled()?(B2("Cache is disabled: will not restore state from previous builds."),new b2("disabled")):t.getCacheProvider()==="basic"?(B2(tft),new y2):(B2(eft),nft())}async function nft(){let t=sft();return await import(Zht(t).href)}function sft(){let t=import.meta.dirname,e=uEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(AEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function B2(t){console.info(t)}import Q2 from"fs";import dEe from"path";var w2=class{constructor(e){this.cacheFile=dEe.resolve(e,h2,"valid-wrappers.json")}load(){if(Q2.existsSync(this.cacheFile))try{return JSON.parse(Q2.readFileSync(this.cacheFile,"utf-8"))}catch(e){ze(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Q2.mkdirSync(dEe.dirname(this.cacheFile),{recursive:!0}),Q2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var EEe=ge(pEe(),1);import*as mEe from"util";import*as S2 from"path";import*as N2 from"fs";var uft=mEe.promisify(N2.readdir);async function CEe(t){return(await IEe(t)).filter(r=>(0,EEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>S2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function IEe(t){let e=await uft(t),r=await Promise.all(e.map(async n=>{let s=S2.resolve(t,n),i=N2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?IEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var dft={_useHtmlParser2:!1};function tE(t,e){if(!t)return e??dft;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Tq={};Ra(Tq,{contains:()=>G2,extract:()=>ogt,html:()=>rgt,merge:()=>qEe,parseHTML:()=>sgt,root:()=>igt,text:()=>fg,xml:()=>ngt});var vd={};Ra(vd,{DocumentPosition:()=>ea,append:()=>Uft,appendChild:()=>Lft,compareDocumentPosition:()=>PEe,existsOne:()=>LEe,filter:()=>oE,find:()=>U2,findAll:()=>Gft,findOne:()=>P2,findOneChild:()=>Hft,getAttributeValue:()=>vft,getChildren:()=>iE,getElementById:()=>Wft,getElements:()=>Vft,getElementsByClassName:()=>Jft,getElementsByTagName:()=>hg,getElementsByTagType:()=>zft,getFeed:()=>Nq,getInnerHTML:()=>kft,getName:()=>Fft,getOuterHTML:()=>FEe,getParent:()=>MEe,getSiblings:()=>wq,getText:()=>F2,hasAttrib:()=>_ft,hasChildren:()=>rr,innerText:()=>Fb,isCDATA:()=>rE,isComment:()=>dg,isDocument:()=>Zo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>M2,prepend:()=>Oft,prependChild:()=>Pft,prevElementSibling:()=>L2,removeElement:()=>$u,removeSubsets:()=>jft,replaceElement:()=>Mft,testElement:()=>Yft,textContent:()=>Ku,uniqueSort:()=>Dd});var Xo={};Ra(Xo,{CDATA:()=>hq,Comment:()=>Aq,Directive:()=>cq,Doctype:()=>fq,ElementType:()=>bt,Root:()=>oq,Script:()=>uq,Style:()=>lq,Tag:()=>dq,Text:()=>aq,isTag:()=>iq});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function iq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var oq=bt.Root,aq=bt.Text,cq=bt.Directive,Aq=bt.Comment,uq=bt.Script,lq=bt.Style,dq=bt.Tag,hq=bt.CDATA,fq=bt.Doctype;var T2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return nE(this,e)}},Db=class extends T2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends Db{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends Db{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends Db{constructor(e,r){super(r),this.name=e,this.type=bt.Di
Line truncated
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Tb(i));return n.searchPaths.push(...JG(n.patterns)),n})}static stat(e,r,n){return tq(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield eE.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield eE.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield eE.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as rq from"crypto";import*as I2 from"fs";import*as X0e from"stream";import*as Z0e from"util";import*as eEe from"path";var zht=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},jht=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function tEe(t,e){return zht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=rq.createHash("sha256"),f=0;try{for(var g=!0,E=jht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${eEe.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(I2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=rq.createHash("sha256");yield Z0e.promisify(X0e.pipeline)(I2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var rEe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function nq(t,e){return rEe(this,void 0,void 0,function*(){return yield E2.create(t,e)})}function nEe(t){return rEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield nq(e,{followSymbolicLinks:i});return tEe(o,r,s)})}import*as sq from"path";var Kht="Gradle User Home",iEe="BASIC_CACHE_PRIMARY_KEY",oEe="BASIC_CACHE_RESTORED_KEY",$ht="setup-java",aEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],y2=class{async restore(e,r){let n=cEe(e),s=await Xht();Uc(iEe,s);try{let i=await i2(n,s);i?(Uc(oEe,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ve(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(iEe),i=My(oEe);if(n.readOnly)return{status:"read-only",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=cEe(e);try{return await o2(o,s)===-1?(Ve(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):($(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return Ve(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Rb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${aEe}], make sure you have checked out the target repository`);return`${$ht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var eft="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",tft="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",rft="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",b2=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function lEe(t){return t.getCacheProvider()==="external"?(B2(rft),new b2("external")):t.isCacheDisabled()?(B2("Cache is disabled: will not restore state from previous builds."),new b2("disabled")):t.getCacheProvider()==="basic"?(B2(tft),new y2):(B2(eft),nft())}async function nft(){let t=sft();return await import(Zht(t).href)}function sft(){let t=import.meta.dirname,e=uEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(AEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function B2(t){console.info(t)}import Q2 from"fs";import dEe from"path";var w2=class{constructor(e){this.cacheFile=dEe.resolve(e,h2,"valid-wrappers.json")}load(){if(Q2.existsSync(this.cacheFile))try{return JSON.parse(Q2.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Q2.mkdirSync(dEe.dirname(this.cacheFile),{recursive:!0}),Q2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var EEe=ge(pEe(),1);import*as mEe from"util";import*as S2 from"path";import*as N2 from"fs";var uft=mEe.promisify(N2.readdir);async function CEe(t){return(await IEe(t)).filter(r=>(0,EEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>S2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function IEe(t){let e=await uft(t),r=await Promise.all(e.map(async n=>{let s=S2.resolve(t,n),i=N2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?IEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var dft={_useHtmlParser2:!1};function tE(t,e){if(!t)return e??dft;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var Tq={};Ra(Tq,{contains:()=>G2,extract:()=>ogt,html:()=>rgt,merge:()=>qEe,parseHTML:()=>sgt,root:()=>igt,text:()=>fg,xml:()=>ngt});var vd={};Ra(vd,{DocumentPosition:()=>ea,append:()=>Uft,appendChild:()=>Lft,compareDocumentPosition:()=>PEe,existsOne:()=>LEe,filter:()=>oE,find:()=>U2,findAll:()=>Gft,findOne:()=>P2,findOneChild:()=>Hft,getAttributeValue:()=>vft,getChildren:()=>iE,getElementById:()=>Wft,getElements:()=>Vft,getElementsByClassName:()=>Jft,getElementsByTagName:()=>hg,getElementsByTagType:()=>zft,getFeed:()=>Nq,getInnerHTML:()=>kft,getName:()=>Fft,getOuterHTML:()=>FEe,getParent:()=>MEe,getSiblings:()=>wq,getText:()=>F2,hasAttrib:()=>_ft,hasChildren:()=>rr,innerText:()=>Fb,isCDATA:()=>rE,isComment:()=>dg,isDocument:()=>Zo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>M2,prepend:()=>Oft,prependChild:()=>Pft,prevElementSibling:()=>L2,removeElement:()=>$u,removeSubsets:()=>jft,replaceElement:()=>Mft,testElement:()=>Yft,textContent:()=>Ku,uniqueSort:()=>Dd});var Xo={};Ra(Xo,{CDATA:()=>hq,Comment:()=>Aq,Directive:()=>cq,Doctype:()=>fq,ElementType:()=>bt,Root:()=>oq,Script:()=>uq,Style:()=>lq,Tag:()=>dq,Text:()=>aq,isTag:()=>iq});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function iq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var oq=bt.Root,aq=bt.Text,cq=bt.Directive,Aq=bt.Comment,uq=bt.Script,lq=bt.Style,dq=bt.Tag,hq=bt.CDATA,fq=bt.Doctype;var T2=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return nE(this,e)}},Db=class extends T2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends Db{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends Db{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends Db{constructor(e,r){super(r),this.name=e,this.type=bt.Di
Line truncated
|
||||
`:F2(t.children):rE(t)?F2(t.children):Ii(t)?t.data:""}function Ku(t){return Array.isArray(t)?t.map(Ku).join(""):rr(t)&&!dg(t)?Ku(t.children):Ii(t)?t.data:""}function Fb(t){return Array.isArray(t)?t.map(Fb).join(""):rr(t)&&(t.type===bt.Tag||rE(t))?Fb(t.children):Ii(t)?t.data:""}function iE(t){return rr(t)?t.children:[]}function MEe(t){return t.parent||null}function wq(t){let e=MEe(t);if(e!=null)return iE(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function vft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function _ft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Fft(t){return t.name}function M2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function L2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function $u(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Mft(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Lft(t,e){if($u(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Uft(t,e){$u(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Pft(t,e){if($u(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function Oft(t,e){$u(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function oE(t,e,r=!0,n=1/0){return U2(t,Array.isArray(e)?e:[e],r,n)}function U2(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Hft(t,e){return e.find(t)}function P2(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=P2(t,i.children,!0);if(o)return o}}return null}function LEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&LEe(t,r.children))}function Gft(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var O2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function Sq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function qft(t,e){return r=>t(r)||e(r)}function UEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(O2,r)?O2[r](n):Sq(r,n)});return e.length===0?null:e.reduce(qft)}function Yft(t,e){let r=UEe(t);return r?r(e):!0}function Vft(t,e,r,n=1/0){let s=UEe(t);return s?oE(s,e,r,n):[]}function Wft(t,e,r=!0){return Array.isArray(e)||(e=[e]),P2(Sq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return oE(O2.tag_name(t),e,r,n)}function Jft(t,e,r=!0,n=1/0){return oE(Sq("class",t),e,r,n)}function zft(t,e,r=!0,n=1/0){return oE(O2.tag_type(t),e,r,n)}function jft(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var ea;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(ea||(ea={}));function PEe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return ea.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?ea.FOLLOWING|ea.CONTAINED_BY:ea.FOLLOWING:a===t?ea.PRECEDING|ea.CONTAINS:ea.PRECEDING}function Dd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=PEe(e,r);return n&ea.PRECEDING?-1:n&ea.FOLLOWING?1:0}),t}function Nq(t){let e=H2(egt,t);return e?e.name==="feed"?Kft(e):$ft(e):null}function Kft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:OEe(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=H2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=kd("summary",c)||kd("conten
Line truncated
|
||||
:is(button, input, select, textarea, optgroup, option)[disabled],
|
||||
optgroup[disabled] > option,
|
||||
@@ -280,7 +280,7 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
|
||||
</toolchain>`).join(`
|
||||
`)}
|
||||
</toolchains>
|
||||
`}function o_t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var $z="GRADLE_BUILD_ACTION_SETUP_COMPLETED",a_t="GRADLE_USER_HOME",c_t="DEVELOCITY_CACHE_TOKEN";async function qRe(t,e,r){let n=await YRe(),s=await u_t();if(process.env[$z])return $("Gradle setup only performed on first gradle/actions step in workflow."),!1;Cn($z,!0),Uc($z,!0),Uc(a_t,s),GRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await T0e(e);return Uc(c_t,o??""),await(await lEe(t)).restore(s,A_t(t,i,o)),await HRe(r,Vu(),s),S0e(e),!0}function A_t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function u_t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Vu();return Zz.resolve(r,t)}let e=Zz.resolve(await YRe(),".gradle");if(Xz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),Cn("GRADLE_USER_HOME",e),e;if(G_.platform()==="win32"&&e.startsWith("C:\\")&&Xz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Cn("GRADLE_USER_HOME",r),r}return Cn("GRADLE_USER_HOME",e),e}async function YRe(){let t=await Fy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return $("Could not determine user.home from java -version output. Using os.homedir()."),G_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}var DDe=ge(oDe(),1),sj=ge(Xy(),1);import*as hC from"fs";import*as bDe from"os";import*as hh from"path";import*as rj from"crypto";import*as up from"fs";var Q_t=ge(Xy(),1);import*as gw from"path";var V_=ge(Xy(),1);import*as cDe from"stream";import*as ADe from"util";import{ok as S_t}from"assert";var aDe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},q_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return aDe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;$(i.message)}let s=this.getSleepAmount();$(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return aDe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Y_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},N_t=process.platform==="win32",P1r=process.platform==="darwin",T_t="actions/tool-cache";function uDe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||gw.join(dDe(),rj.randomUUID()),yield gf(gw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=tj("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=tj("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new q_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield x_t(t,e||"",r,n)}),c=>!(c instanceof Y_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function x_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(T_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new Y_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=ADe.promisify(cDe.pipeline),c=tj("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield fAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function lDe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter
Line truncated
|
||||
`}function o_t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var $z="GRADLE_BUILD_ACTION_SETUP_COMPLETED",a_t="GRADLE_USER_HOME",c_t="DEVELOCITY_CACHE_TOKEN";async function qRe(t,e,r){let n=await YRe(),s=await u_t();if(process.env[$z])return $("Gradle setup only performed on first gradle/actions step in workflow."),!1;Cn($z,!0),Uc($z,!0),Uc(a_t,s),GRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await T0e(e);return Uc(c_t,o??""),await(await lEe(t)).restore(s,A_t(t,i,o)),await HRe(r,Vu(),s),S0e(e),!0}function A_t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function u_t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Vu();return Zz.resolve(r,t)}let e=Zz.resolve(await YRe(),".gradle");if(Xz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),Cn("GRADLE_USER_HOME",e),e;if(G_.platform()==="win32"&&e.startsWith("C:\\")&&Xz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Cn("GRADLE_USER_HOME",r),r}return Cn("GRADLE_USER_HOME",e),e}async function YRe(){let t=await Fy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return $("Could not determine user.home from java -version output. Using os.homedir()."),G_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}var DDe=ge(oDe(),1),sj=ge(Xy(),1);import*as hC from"fs";import*as bDe from"os";import*as hh from"path";import*as rj from"crypto";import*as up from"fs";var Q_t=ge(Xy(),1);import*as gw from"path";var V_=ge(Xy(),1);import*as cDe from"stream";import*as ADe from"util";import{ok as S_t}from"assert";var aDe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},q_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return aDe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;$(i.message)}let s=this.getSleepAmount();$(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return aDe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Y_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},N_t=process.platform==="win32",P1r=process.platform==="darwin",T_t="actions/tool-cache";function uDe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||gw.join(dDe(),rj.randomUUID()),yield gf(gw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=tj("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=tj("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new q_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield x_t(t,e||"",r,n)}),c=>!(c instanceof Y_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function x_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(T_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new Y_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=ADe.promisify(cDe.pipeline),c=tj("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield fAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function lDe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter
Line truncated
|
||||
`," Line feed \\n"]]),YDe=new Map([...Oj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function VDe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of YDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(YDe.values()).toString()}
|
||||
@@ -292,28 +292,28 @@ Invalid characters include: ${Array.from(Oj.values()).toString()}
|
||||
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
|
||||
`)}var jDe=ge(zDe(),1);function YA(){return`@actions/artifact-${jDe.version}`}var mC=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},Cl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Il=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},fh=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},yl=class extends Error{constructor(e){let r=`Unable to make request: ${e}
|
||||
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};yl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var dp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function rFt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function nFt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return rFt(e)}catch{return atob(e)}}function KDe(t,e){if(typeof t!="string")throw new hp("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=nFt(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var K_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=z_(),e=KDe(t);if(!e.scp)throw K_;let r=e.scp.split(" ");if(r.length===0)throw K_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw K_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw K_}function $De(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function XDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$De(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$De(t.signed_url)}var $_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Gj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=z_();this.baseUrl=vDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return $_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>$_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return $_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(XDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(yl.isNetworkErrorCode(a?.code))throw new yl(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);$(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return $_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new Gj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new j_(e)}import*as EC from"fs";import{normalize as ZDe,resolve as e2e}from"path";function t2e(t){if(!EC.existsSync(t))throw ne
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&ze("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);$(`Redirecting to blob download url: ${d4e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield h4e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function p4e(){return dI(this,arguments,void 0,function*(t=_De()){return(yield OWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield a4e.mkdir(t,{recursive:!0})),t})}var GWt=5,qWt=[400,401,403,404,422];function hI(t,e=GWt,r=qWt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return O(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var m4e="6.0.0";function Gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Gp.VERSION=m4e;var I4e=ge(E4e(),1);var sL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var YWt="0.0.0-development";async function C4e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function VWt(t,e,r,n){let s=new I4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(WWt.bind(null,t,e,r),n)}async function WWt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new sL(s.data.errors[0].message,500,{request:n,response:s});return C4e(t,e,i,n)}return s}function qp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",C4e.bind(null,r,t)),t.hook.wrap("request",VWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=YWt;var y4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function iL(t,e,r,n,s){return y4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Ya(s,c,qp,Gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new Cl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}
|
||||
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function rFt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function nFt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return rFt(e)}catch{return atob(e)}}function KDe(t,e){if(typeof t!="string")throw new hp("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=nFt(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var K_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=z_(),e=KDe(t);if(!e.scp)throw K_;let r=e.scp.split(" ");if(r.length===0)throw K_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw K_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw K_}function $De(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function XDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&$De(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&$De(t.signed_url)}var $_=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Gj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=z_();this.baseUrl=vDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return $_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>$_(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return $_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(XDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)throw a;if(yl.isNetworkErrorCode(a?.code))throw new yl(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);$(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return $_(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function WA(t){let e=new Gj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new j_(e)}import*as EC from"fs";import{normalize as ZDe,resolve as e2e}from"path";function t2e(t){if(!EC.existsSync(t))throw ne
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ve("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);$(`Redirecting to blob download url: ${d4e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield h4e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function p4e(){return dI(this,arguments,void 0,function*(t=_De()){return(yield OWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield a4e.mkdir(t,{recursive:!0})),t})}var GWt=5,qWt=[400,401,403,404,422];function hI(t,e=GWt,r=qWt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return O(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var m4e="6.0.0";function Gp(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}Gp.VERSION=m4e;var I4e=ge(E4e(),1);var sL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var YWt="0.0.0-development";async function C4e(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function VWt(t,e,r,n){let s=new I4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(WWt.bind(null,t,e,r),n)}async function WWt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new sL(s.data.errors[0].message,500,{request:n,response:s});return C4e(t,e,i,n)}return s}function qp(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",C4e.bind(null,r,t)),t.hook.wrap("request",VWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=YWt;var y4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function iL(t,e,r,n,s){return y4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Ya(s,c,qp,Gp).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new Cl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}
|
||||
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],O(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function B4e(t){return y4e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:pn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}
|
||||
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var b4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Q4e(t,e,r,n,s){return b4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Ya(s,c,qp,Gp),u=yield iL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new Cl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function w4e(t){return b4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var S4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},oL=LDe(),aL=100,JWt=Math.ceil(oL/aL);function N4e(t,e,r,n){return S4e(this,arguments,void 0,function*(s,i,o,a,c=!1){$(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=hI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Ya(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:aL,page:f}),E=Math.ceil(g.total_count/aL),m=g.total_count;m>oL&&(ze(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${oL}. Results will be incomplete as only the first ${oL} artifacts will be returned`),E=JWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:aL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=x4e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function T4e(){return S4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=x4e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function x4e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var L1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},zWt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},Yp=class{uploadArtifact(e,r,n,s){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;return S8e(e,r,n,s)}catch(i){throw ze(`Artifact upload failed with error: ${i}.
|
||||
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var b4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Q4e(t,e,r,n,s){return b4e(this,void 0,void 0,function*(){var i;let[o,a]=hI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Ya(s,c,qp,Gp),u=yield iL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new Cl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function w4e(t){return b4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Il(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var S4e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},oL=LDe(),aL=100,JWt=Math.ceil(oL/aL);function N4e(t,e,r,n){return S4e(this,arguments,void 0,function*(s,i,o,a,c=!1){$(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=hI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Ya(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:aL,page:f}),E=Math.ceil(g.total_count/aL),m=g.total_count;m>oL&&(Ve(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${oL}. Results will be incomplete as only the first ${oL} artifacts will be returned`),E=JWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:aL,page:f});for(let y of I.artifacts)A.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return c&&(A=x4e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function T4e(){return S4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=x4e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function x4e(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var L1=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},zWt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},Yp=class{uploadArtifact(e,r,n,s){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;return S8e(e,r,n,s)}catch(i){throw Ve(`Artifact upload failed with error: ${i}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=zWt(r,["findBy"]);return f4e(e,n,s,i,o)}return g4e(e,r)}catch(n){throw ze(`Download Artifact failed with error: ${n}.
|
||||
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=zWt(r,["findBy"]);return f4e(e,n,s,i,o)}return g4e(e,r)}catch(n){throw Ve(`Download Artifact failed with error: ${n}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return N4e(r,n,s,i,e?.latest)}return T4e(e?.latest)}catch(r){throw ze(`Listing Artifacts failed with error: ${r}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return N4e(r,n,s,i,e?.latest)}return T4e(e?.latest)}catch(r){throw Ve(`Listing Artifacts failed with error: ${r}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return iL(e,n,s,i,o)}return B4e(e)}catch(n){throw ze(`Get Artifact failed with error: ${n}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return iL(e,n,s,i,o)}return B4e(e)}catch(n){throw Ve(`Get Artifact failed with error: ${n}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return Q4e(e,i,n,s,o)}return w4e(e)}catch(n){throw ze(`Delete Artifact failed with error: ${n}.
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return L1(this,void 0,void 0,function*(){try{if(fC())throw new fh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return Q4e(e,i,n,s,o)}return w4e(e)}catch(n){throw Ve(`Delete Artifact failed with error: ${n}.
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
@@ -321,7 +321,7 @@ If the error persists, please check whether Actions and API requests are operati
|
||||
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
|
||||
Please ensure that the 'contents: write' permission is available for the workflow job.
|
||||
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
|
||||
`:n}async function eJt(t){let e=sJt(),r=OZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=GZ(t);wAe(`Submitted ${i}: ${s.data.message}`)}function tJt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function rJt(t){let e=`${t}.processed`;return OZ.existsSync(e)}function nJt(t){let e=`${t}.processed`;OZ.writeFileSync(e,"")}function F4e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);ze(`Failed to ${e} dependency graph. Will continue.
|
||||
`:n}async function eJt(t){let e=sJt(),r=OZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=GZ(t);wAe(`Submitted ${i}: ${s.data.message}`)}function tJt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function rJt(t){let e=`${t}.processed`;return OZ.existsSync(e)}function nJt(t){let e=`${t}.processed`;OZ.writeFileSync(e,"")}function F4e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);Ve(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function sJt(){return Ya(f2())}function GZ(t){let e=Vu();return cL.relative(e,t)}function iJt(){let t=oi;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function qZ(){return process.env.ACT!==void 0}function YZ(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(aJt(o[1],o[6],o[0]));while(o!==null);return i}function aJt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function cJt(t=process.platform){return t==="win32"?50:0}async function M4e(t=process.platform){let e=cJt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function AJt(){try{w0e("gradle/actions/dependency-submission"),await qRe(new $0,new nc,new d2);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new yb;if(await k4e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new l2,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
|
||||
-Dorg.gradle.configureondemand=false
|
||||
-Dorg.gradle.dependency.verification=off
|
||||
|
||||
Reference in new issue
Block a user