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
+120
-12
No files matched your search
Vendored
+28
-1
@@ -279,7 +279,34 @@ This job uses deprecated functionality from the <code>${Qx()}</code> action. Fol
|
||||
<td>${wit(t)}</td>
|
||||
</tr>`}function Qit(t){return t.buildFailed?":x:":":white_check_mark:"}function wit(t){return t.buildScanFailed?c5({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?c5({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):c5({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function c5({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function Qhe(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}var She=class t{static{this.accessKeyRegexp=/^([^;=\s]+=\w+)(;[^;=\s]+=\w+)*$/}constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static parse(e){return this.isValid(e)?new t(e.split(this.keyDelimiter).map(r=>{let n=r.split(this.hostDelimiter);return{hostname:n[0],key:n[1]}})):null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}static isValid(e){return this.accessKeyRegexp.test(e)}};import*as vo from"fs";import*as cu from"path";function Nhe(){return xhe().map(e=>{let r=vo.readFileSync(e,"utf8"),n=JSON.parse(r);return Tit(e,n),n})}function The(){xhe().forEach(Rit)}function xhe(){let t=cu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return vo.existsSync(t)?vo.readdirSync(t).map(e=>cu.resolve(t,e)).filter(e=>cu.extname(e)===".json"&&!xit(e)):[]}function Tit(t,e){let r=cu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!vo.existsSync(r))return;let n=cu.resolve(r,cu.basename(t));if(vo.existsSync(n)){let s=vo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function xit(t){let e=`${t}.processed`;return vo.existsSync(e)}function Rit(t){let e=`${t}.processed`;vo.writeFileSync(e,"")}import*as Rhe from"fs";import*as Dhe from"path";import{pathToFileURL as Dit}from"url";var kit=`
|
||||
[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.
|
||||
`,vit="\n***********************************************************\nLICENSING NOTICE\n\nThe caching functionality in `gradle-actions` has been extracted into `gradle-actions-caching`, a proprietary commercial component that is not covered by the MIT License. \nThe bundled `gradle-actions-caching` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.\n\nThe `gradle-actions-caching` component is used only when caching is enabled and is not loaded or used when caching is disabled.\n\nUse of the `gradle-actions-caching` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/. \nIf you do not agree to these license terms, do not use the `gradle-actions-caching` component.\n***********************************************************\n",_it="\n> [!IMPORTANT]\n> #### Licensing notice\n>\n> The caching functionality in `gradle-actions` has been extracted into `gradle-actions-caching`, a proprietary commercial component that is not covered by the MIT License. \n> The bundled `gradle-actions-caching` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.\n>\n> The `gradle-actions-caching` component is used only when caching is enabled and is not loaded or used when caching is disabled.\n>\n> Use of the `gradle-actions-caching` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/. \n> If you do not agree to these license terms, do not use the `gradle-actions-caching` component.\n",u5=class{async restore(e,r){}async save(e,r,n){return kit}},l5=class{constructor(e){this.delegate=e}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
|
||||
`,vit=`
|
||||
***********************************************************
|
||||
LICENSING NOTICE
|
||||
|
||||
The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
|
||||
The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
|
||||
|
||||
The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
|
||||
|
||||
Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
|
||||
If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
|
||||
|
||||
You can suppress this message by accepting the terms in your action configuration: see https://github.com/gradle/actions/blob/main/README.md
|
||||
***********************************************************
|
||||
`,_it=`
|
||||
> [!IMPORTANT]
|
||||
> #### Licensing notice
|
||||
>
|
||||
> The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
|
||||
> The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
|
||||
>
|
||||
> The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
|
||||
>
|
||||
> Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
|
||||
> If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
|
||||
>
|
||||
>You can suppress this message by [accepting the terms in your action configuration](https://github.com/gradle/actions/blob/main/README.md).
|
||||
`,u5=class{async restore(e,r){}async save(e,r,n){return kit}},l5=class{constructor(e){this.delegate=e}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
|
||||
${_it}`}};async function khe(t){if(t.isCacheDisabled())return new u5;let e=await Fit();return t.isCacheLicenseAccepted()?e:(await Lit(),new l5(e))}async function Fit(){let t=Mit();return await import(Dit(t).href)}function Mit(){let t=import.meta.dirname,e=Dhe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(Rhe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}async function Lit(){console.info(vit)}import*as Lhe from"util";var Yit=he(Mhe(),1);import*as d5 from"fs";var zAr=Lhe.promisify(d5.readdir);var Wit={_useHtmlParser2:!1};function bm(t,e){if(!t)return e??Wit;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 M5={};ua(M5,{contains:()=>Vx,extract:()=>Oot,html:()=>Mot,merge:()=>ofe,parseHTML:()=>Uot,root:()=>Pot,text:()=>af,xml:()=>Lot});var _l={};ua(_l,{DocumentPosition:()=>Mo,append:()=>Eot,appendChild:()=>mot,compareDocumentPosition:()=>rfe,existsOne:()=>efe,filter:()=>Tm,find:()=>Hx,findAll:()=>Bot,findOne:()=>Gx,findOneChild:()=>yot,getAttributeValue:()=>hot,getChildren:()=>Nm,getElementById:()=>Sot,getElements:()=>wot,getElementsByClassName:()=>Not,getElementsByTagName:()=>of,getElementsByTagType:()=>Tot,getFeed:()=>F5,getInnerHTML:()=>dot,getName:()=>got,getOuterHTML:()=>Zhe,getParent:()=>$he,getSiblings:()=>v5,getText:()=>Ux,hasAttrib:()=>fot,hasChildren:()=>tr,innerText:()=>Dy,isCDATA:()=>Qm,isComment:()=>sf,isDocument:()=>Fo,isTag:()=>Qe,isText:()=>Ai,nextElementSibling:()=>Px,prepend:()=>Iot,prependChild:()=>Cot,prevElementSibling:()=>Ox,removeElement:()=>du,removeSubsets:()=>xot,replaceElement:()=>pot,testElement:()=>Qot,textContent:()=>lu,uniqueSort:()=>kl});var _o={};ua(_o,{CDATA:()=>y5,Comment:()=>m5,Directive:()=>p5,Doctype:()=>B5,ElementType:()=>yt,Root:()=>f5,Script:()=>E5,Style:()=>C5,Tag:()=>I5,Text:()=>g5,isTag:()=>h5});var yt;(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"})(yt||(yt={}));function h5(t){return t.type===yt.Tag||t.type===yt.Script||t.type===yt.Style}var f5=yt.Root,g5=yt.Text,p5=yt.Directive,m5=yt.Comment,E5=yt.Script,C5=yt.Style,I5=yt.Tag,y5=yt.CDATA,B5=yt.Doctype;var Dx=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 wm(this,e)}},Ny=class extends Dx{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},OA=class extends Ny{constructor(){super(...arguments),this.type=yt.Text}get nodeType(){return 3}},tf=class extends Ny{constructor(){super(...arguments),this.type=yt.Comment}get nodeType(){return 8}},rf=class extends Ny{constructor(e,r){super(r),this.name=e,this.type=yt.Directive}get nodeType(){return 1}},Ty=class extends Dx{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},xy=class extends Ty{constructor(){super(...arguments),this.type=yt.CDATA}get nodeType(){return 4}},Oi=class extends Ty{constructor(){super(...arguments),this.type=yt.Root}get nodeType(){return 9}},nf=class extends Ty{constructor(e,r,n=[],s=e==="script"?yt.Script:e==="style"?yt.Style:yt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}})}};function Qe(t){return h5(t)}function Qm(t){return t.type===yt.CDATA}function Ai(t){return t.type===yt.Text}function sf(t){return t.type===yt.Comment}function kx(t){return t.type===yt.Directive}function Fo(t){return t.type===yt.Root}function tr(t){return Object.prototype.hasOwnProperty.call(t,"children")}function wm(t,e=!1){let r;if(Ai(t))r=new OA(t.data);else if(sf(t))r=new tf(t.data);else if(Qe(t)){let n=e?b5(t.children):[],s=new nf(t.name,{...t.attribs},n);n.forEach(i=>i.parent=s),t.namespace!=null&&(s.namespace=t.namespace),t["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...t["x-attribsNamespace"]}),t["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...t["x-attribsPrefix"]}),r=s}else if(Qm(t)){let n=e?b5(t.children):[],s=new xy(n);n.forEach(i=>i.parent=s),r=s}else if(Fo(t)){let n=e?b5(t.children):[],s=new Oi(n);n.forEach(i=>i.parent=s),t["x-mode"]&&(s["x-mode"]=t["x-mode"]),r=s}else if(kx(t)){let n=n
Line truncated
|
||||
`:Ux(t.children):Qm(t)?Ux(t.children):Ai(t)?t.data:""}function lu(t){return Array.isArray(t)?t.map(lu).join(""):tr(t)&&!sf(t)?lu(t.children):Ai(t)?t.data:""}function Dy(t){return Array.isArray(t)?t.map(Dy).join(""):tr(t)&&(t.type===yt.Tag||Qm(t))?Dy(t.children):Ai(t)?t.data:""}function Nm(t){return tr(t)?t.children:[]}function $he(t){return t.parent||null}function v5(t){let e=$he(t);if(e!=null)return Nm(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 hot(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function fot(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function got(t){return t.name}function Px(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function Ox(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function du(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 pot(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 mot(t,e){if(du(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 Eot(t,e){du(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 Cot(t,e){if(du(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 Iot(t,e){du(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 Tm(t,e,r=!0,n=1/0){return Hx(t,Array.isArray(e)?e:[e],r,n)}function Hx(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&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function yot(t,e){return e.find(t)}function Gx(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&&tr(i)&&i.children.length>0){let o=Gx(t,i.children,!0);if(o)return o}}return null}function efe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&efe(t,r.children))}function Bot(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),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var qx={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=>Ai(e)&&t(e.data):e=>Ai(e)&&e.data===t}};function _5(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function bot(t,e){return r=>t(r)||e(r)}function tfe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(qx,r)?qx[r](n):_5(r,n)});return e.length===0?null:e.reduce(bot)}function Qot(t,e){let r=tfe(t);return r?r(e):!0}function wot(t,e,r,n=1/0){let s=tfe(t);return s?Tm(s,e,r,n):[]}function Sot(t,e,r=!0){return Array.isArray(e)||(e=[e]),Gx(_5("id",t),e,r)}function of(t,e,r=!0,n=1/0){return Tm(qx.tag_name(t),e,r,n)}function Not(t,e,r=!0,n=1/0){return Tm(_5("class",t),e,r,n)}function Tot(t,e,r=!0,n=1/0){return Tm(qx.tag_type(t),e,r,n)}function xot(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 Mo;(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"})(Mo||(Mo={}));function rfe(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(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 Mo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Mo.FOLLOWING|Mo.CONTAINED_BY:Mo.FOLLOWING:a===t?Mo.PRECEDING|Mo.CONTAINS:Mo.PRECEDING}function kl(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=rfe(e,r);return n&Mo.PRECEDING?-1:n&Mo.FOLLOWING?1:0}),t}function F5(t){let e=Yx(_ot,t);return e?e.name==="feed"?Rot(e):Dot(e):null}function Rot(t){var e;let r=t.children,n={type:"atom",items:of("entry",r).map(o=>{var a;let{children:A}=o,c={media:nfe(A)};ci(c,"id","id",A),ci(c,"title","title",A);let u=(a=Yx("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=vl("summary",A)||vl("conten
Line truncated
|
||||
:is(button, input, select, textarea, optgroup, option)[disabled],
|
||||
|
||||
Reference in new issue
Block a user