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
+12
-12
No files matched your search
+1
-1
@@ -346,7 +346,7 @@ ${n}`;break;case"retry":Dje(n)&&(r[s]=n);break;case"id":Nje(n)&&(r[s]=n);break;c
|
||||
`);t.stack=r?`${r}
|
||||
${n}`:s.stack}Ee.exports.fetch=function(e,r=void 0){return kQr(e,r).catch(A=>{throw _je?Gje(A,_je):A&&typeof A=="object"&&Error.captureStackTrace(A,Ee.exports.fetch),A})};Ee.exports.Headers=gI().Headers;Ee.exports.Response=OS().Response;Ee.exports.Request=fy().Request;Ee.exports.FormData=sH().FormData;var{setGlobalOrigin:FQr,getGlobalOrigin:xQr}=gAe();Ee.exports.setGlobalOrigin=FQr;Ee.exports.getGlobalOrigin=xQr;var{CacheStorage:UQr}=yze(),{kConstruct:MQr}=yr();Ee.exports.caches=new UQr(MQr);var{deleteCookie:LQr,getCookies:vQr,getSetCookies:_Qr,setCookie:PQr,parseCookie:OQr}=Lze();Ee.exports.deleteCookie=LQr;Ee.exports.getCookies=vQr;Ee.exports.getSetCookies=_Qr;Ee.exports.setCookie=PQr;Ee.exports.parseCookie=OQr;var{parseMIMEType:HQr,serializeAMimeType:GQr}=za();Ee.exports.parseMIMEType=HQr;Ee.exports.serializeAMimeType=GQr;var{CloseEvent:YQr,ErrorEvent:qQr,MessageEvent:JQr}=mG(),{WebSocket:VQr,ping:WQr}=Eje();Ee.exports.WebSocket=VQr;Ee.exports.CloseEvent=YQr;Ee.exports.ErrorEvent=qQr;Ee.exports.MessageEvent=JQr;Ee.exports.ping=WQr;Ee.exports.WebSocketStream=yje().WebSocketStream;Ee.exports.WebSocketError=bie().WebSocketError;Ee.exports.request=XS(Ny.request);Ee.exports.stream=XS(Ny.stream);Ee.exports.pipeline=XS(Ny.pipeline);Ee.exports.connect=XS(Ny.connect);Ee.exports.upgrade=XS(Ny.upgrade);Ee.exports.MockClient=BQr;Ee.exports.MockCallHistory=QQr;Ee.exports.MockCallHistoryLog=pQr;Ee.exports.MockPool=yQr;Ee.exports.MockAgent=mQr;Ee.exports.SnapshotAgent=bQr;Ee.exports.mockErrors=wQr;var{EventSource:zQr}=vje();Ee.exports.EventSource=zQr;function jQr(){globalThis.fetch=Ee.exports.fetch,globalThis.Headers=Ee.exports.Headers,globalThis.Response=Ee.exports.Response,globalThis.Request=Ee.exports.Request,globalThis.FormData=Ee.exports.FormData,globalThis.WebSocket=Ee.exports.WebSocket,globalThis.CloseEvent=Ee.exports.CloseEvent,globalThis.ErrorEvent=Ee.exports.ErrorEvent,globalThis.MessageEvent=Ee.exports.MessageEvent,globalThis.EventSource=Ee.exports.EventSource}Ee.exports.install=jQr});var ZS=h(yE=>{"use strict";yE.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");yE.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");yE.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
|
||||
`||t==="\r";yE.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);yE.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);yE.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());yE.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let A=t[e];if(++e,A==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var Jje=h((jHr,qje)=>{"use strict";var{asciiLowercase:vG,solelyContainsHTTPTokenCodePoints:KQr,soleyContainsHTTPQuotedStringTokenCodePoints:XQr}=ZS();qje.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=vG(String(e)),this._map.get(e)}has(e){return e=vG(String(e)),this._map.has(e)}set(e,r){if(e=vG(String(e)),r=String(r),!KQr(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!XQr(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=vG(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var zje=h((KHr,Wje)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:ZQr,removeTrailingHTTPWhitespace:Vje,isHTTPWhitespaceChar:$Qr,solelyContainsHTTPTokenCodePoints:Tie,soleyContainsHTTPQuotedStringTokenCodePoints:epr,asciiLowercase:kie,collectAnHTTPQuotedString:tpr}=ZS();Wje.exports=t=>{t=ZQr(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Tie(r)||e>=t.length)return null;++e;let A="";for(;e<t.length&&t[e]!==";";)A+=t[e],++e;if(A=Vje(A),A.length===0||!Tie(A))return null;let s={type:kie(r),subtype:kie(A),parameters:new Map};for(;e<t.length;){for(++e;$Qr(t[e]);)++e;let n="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)n+=t[e],++e;if(n=kie(n),e<t.length){if(t[e]===";")continue;++e}let i=null;if(t[e]==='"')for([i,e]=tpr(t,e);e<t.length&&t[e]!==";";)++e;else{for(i="";e<t.length&&t[e]!==";";)i+=t[e],++e;if(i=Vje(i),i==="")continue}n.length>0&&Tie(n)&&epr(i)&&!s.parameters.has(n)&&s.parameters.set(n,i)}return s}});var Kje=h((XHr,jje)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:rpr}=ZS();jje.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,A]of t.parameters)e+=";",e+=r,e+="=",(!rpr(A)||A.length===0)&&(A=A.replace(/(["\\])/ug,"\\$1"),A=`"${A}"`),e+=A;return e}});var e7e=h(($Hr,$je)=>{"use strict";var Apr=Jje(),spr=zje(),npr=Kje(),{asciiLowercase:Xje,solelyContainsHTTPTokenCodePoints:Zje}=ZS();$je.exports=class{constructor(e){e=String(e);let r=spr(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Apr(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=Xje(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Zje(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=Xje(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Zje(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return npr(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});import*as Gie from"os";function Nl(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}function GG(t){return Object.keys(t).length?{title:t.title,file:t.file,line:t.startLine,endLine:t.endLine,col:t.startColumn,endColumn:t.endColumn}:{}}function wE(t,e,r){let A=new YG(t,e,r);process.stdout.write(A.toString()+Gie.EOL)}function qG(t,e=""){wE(t,{},e)}var Hie="::",YG=class{constructor(e,r,A){e||(e="missing.command"),this.command=e,this.properties=r,this.message=A}toString(){let e=Hie+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let A in this.pLine truncated
|
||||
`).filter(A=>A!=="");return e&&e.trimWhitespace===!1?r:r.map(A=>A.trim())}function nk(t){process.exitCode=b4.Failure,xEe(t)}function $E(){return process.env.RUNNER_DEBUG==="1"}function jt(t){wE("debug",{},t)}function xEe(t,e={}){wE("error",GG(e),t instanceof Error?t.toString():t)}function BA(t,e={}){wE("warning",GG(e),t instanceof Error?t.toString():t)}function me(t){process.stdout.write(t+FEe.EOL)}function mct(t){qG("group",t)}function yct(){qG("endgroup")}function Dd(t,e){return pct(this,void 0,void 0,function*(){mct(t);let r;try{r=yield e()}finally{yct()}return r})}function ef(t,e){if(process.env.GITHUB_STATE||"")return JG("STATE",VG(t,e));wE("save-state",{name:t},Nl(e))}function jo(t){return process.env[`STATE_${t}`]||""}var Tke=zt(WD(),1),wOt="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",DOt="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",NOt="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching) via action configuration. Gradle User Home was not restored from or saved to the cache.",ROt="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only) via action configuration. Gradle User Home was not restored from cache.";var yke="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",SOt="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",bke="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.",kke="[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). Use `cache-cleanup: always` to override this behavior.",Fke="[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). This is expected.",LL=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=wOt;this.cacheCleanupMessage=bke}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return Tke.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=DOt){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=yke}setDisabled(e=NOt){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=yke}setWriteOnly(e=ROt){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=SOt}setCacheCleanupDisabled(e=bke){this.cacheCleanupMessage=e}entry(e){for(let A of this.cacheEntries)if(A.entryName===e)return A;let r=new vL(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),A=r.cacheEntries;for(let s=0;s<A.length;s++){let n=A[s];A[s]=Object.assign(new vL(n.entryName),n)}return r}},vL=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,A){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=A,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,A){return this.savedKey=e,this.savedSize=r,this.savedTime=A,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};function xke(t){let e=t.cacheEntries;return`
|
||||
`).filter(A=>A!=="");return e&&e.trimWhitespace===!1?r:r.map(A=>A.trim())}function nk(t){process.exitCode=b4.Failure,xEe(t)}function $E(){return process.env.RUNNER_DEBUG==="1"}function jt(t){wE("debug",{},t)}function xEe(t,e={}){wE("error",GG(e),t instanceof Error?t.toString():t)}function BA(t,e={}){wE("warning",GG(e),t instanceof Error?t.toString():t)}function me(t){process.stdout.write(t+FEe.EOL)}function mct(t){qG("group",t)}function yct(){qG("endgroup")}function Dd(t,e){return pct(this,void 0,void 0,function*(){mct(t);let r;try{r=yield e()}finally{yct()}return r})}function ef(t,e){if(process.env.GITHUB_STATE||"")return JG("STATE",VG(t,e));wE("save-state",{name:t},Nl(e))}function jo(t){return process.env[`STATE_${t}`]||""}var Tke=zt(WD(),1),wOt="[Cache was enabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#caching-build-state-between-jobs). Action attempted to both restore and save the Gradle User Home.",DOt="[Cache was read-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-read-only). By default, the action will only write to the cache for Jobs running on the default branch.",NOt="[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.",ROt="[Cache was set to write-only](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#using-the-cache-write-only). Gradle User Home was not restored from cache.";var yke="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) is always disabled when cache is read-only or disabled.",SOt="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was enabled. Stale files in Gradle User Home were purged before saving to the cache.",bke="[Cache cleanup](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup) was disabled via action parameter. No cleanup of Gradle User Home was performed.",kke="[Cache cleanup was disabled due to build failure](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). Use `cache-cleanup: always` to override this behavior.",Fke="[Cache cleanup was disabled due to configuration-cache reuse](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#configuring-cache-cleanup). This is expected.",LL=class t{constructor(){this.cacheEntries=[];this.cacheReadOnly=!1;this.cacheWriteOnly=!1;this.cacheDisabled=!1;this.cacheStatusReason=wOt;this.cacheCleanupMessage=bke}get fullyRestored(){return this.cacheEntries.every(e=>!e.wasRequestedButNotRestored())}get cacheStatus(){return Tke.isFeatureAvailable()?this.cacheDisabled?"disabled":this.cacheWriteOnly?"write-only":this.cacheReadOnly?"read-only":"enabled":"not available"}setReadOnly(e=DOt){this.cacheReadOnly=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=yke}setDisabled(e=NOt){this.cacheDisabled=!0,this.cacheStatusReason=e,this.cacheCleanupMessage=yke}setWriteOnly(e=ROt){this.cacheWriteOnly=!0,this.cacheStatusReason=e}setCacheCleanupEnabled(){this.cacheCleanupMessage=SOt}setCacheCleanupDisabled(e=bke){this.cacheCleanupMessage=e}entry(e){for(let A of this.cacheEntries)if(A.entryName===e)return A;let r=new vL(e);return this.cacheEntries.push(r),r}stringify(){return JSON.stringify(this)}static rehydrate(e){if(e==="")return new t;let r=Object.assign(new t,JSON.parse(e)),A=r.cacheEntries;for(let s=0;s<A.length;s++){let n=A[s];A[s]=Object.assign(new vL(n.entryName),n)}return r}},vL=class{constructor(e){this.entryName=e}wasRequestedButNotRestored(){return this.requestedKey!==void 0&&this.restoredKey===void 0}markRequested(e,r=[]){return this.requestedKey=e,this.requestedRestoreKeys=r,this}markRestored(e,r,A){return this.restoredKey=e,this.restoredSize=r,this.restoredTime=A,this}markNotRestored(e){return this.notRestored=e,this}markSaved(e,r,A){return this.savedKey=e,this.savedSize=r,this.savedTime=A,this}markAlreadyExists(e){return this.savedKey=e,this.savedSize=0,this}markNotSaved(e){return this.notSaved=e,this}};function xke(t){let e=t.cacheEntries;return`
|
||||
<details>
|
||||
<summary><h4>Caching for Gradle actions was ${t.cacheStatus} - expand for details</h4></summary>
|
||||
|
||||
|
||||
Reference in new issue
Block a user