dchourasia / ms-teams-notification

Microsoft Teams Notification from Github Workflow
MIT License
6 stars 5 forks source link

Post notify build failed #4

Open adarshraj30836 opened 8 months ago

adarshraj30836 commented 8 months ago

Hi ,

I use ms-teams-notification to notify whenever a build starts , but i have started to face an issue where whenever i commit through macos my Post notify build failed always fails ( works fine when code commit from windows ) . The stage where notification comes on teams also works fine , the build breaks always on post notify build , below are the logs for both during notify build and post notify :-

NOTE:- i have removed the urls to my github repo wherever mentioned , so if u see something missing in the url section please ignore .

Laptop Model :- Apple macbook air M2

During notify build :-

Run dchourasia/ms-teams-notification@1.1 starting the card inside formatAndNotify Workflow run information: { "owner": "", "repo": "", "ref": "ff2[17](https:", "branchUrl": "", "runId": "7244224712", "runNum": "37" } { "summary": "Github Actions CI", "themeColor": "957DAD", "sections": [ { "activityTitle": "codeql #37 (commit ff217dc) on [)", "activityImage": "https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png", "activitySubtitle": "Monday, December 18th 2023, 6:02:22 am UTC", "potentialAction": [ { "@context": "http://schema.org", "@type": "ViewAction", "name": "View build/deploy status", "target": [ "https://github.com//actions/runs/7244224712" ] }, { "@context": "http://schema.org", "@type": "ViewAction", "name": "Review commit diffs", "target": [ "https://github.com//commit/ff[21](https://github.com//actions/runs/7244224712/job/19732270552#step:3:22)7dc91eba69bf5ff821cbfd6486a6c1114b0e" ] } ], "facts": [ { "name": "Event type:", "value": "PUSH" }, { "name": "Status:", "value": "IN_PROGRESS" }, { "name": "Commit message:", "value": "Fix(AdhcarCard): Loading issue fixed" }, { "name": "Repository & branch:", "value": "https://github.com//tree/refs/heads/DEV" }, { "name": "Files changed:", "value": "* src/components/KYC/AdharCard.js (2 changes)" } ] } ] }

adarshraj30836 commented 8 months ago

Post Notification build :-

Post job cleanup. run info: { "owner": "", "repo": "", "ref": "ff217dc91eba69bf5ff821cbfd6486a6c1114b0e", "branchUrl": "https://github.com//tree/refs/heads/DEV", "runId": "7244224712", "runNum": "37" } current job name == parent job name == Resource not accessible by integration inside formatAndNotify Workflow run information: { "owner": "", "repo": "", "ref": "ff217dc91eba69bf5ff821cbfd6486a6c1114b0e", "branchUrl": "https://github.com//tree/refs/heads/DEV", "runId": "7244224712", "runNum": "37" } /home/runner/work/_actions/dchourasia/ms-teams-notification/1.1/dist/post/index.js:1 module.exports=function(e,t){"use strict";var r={};function webpack_require(t){if(r[t]){return r[t].exports}var a=r[t]={i:t,l:false,exports:{}};e[t].call(a.exports,a,a.exports,webpack_require);a.l=true;return a.exports}webpack_require.ab=dirname+"/";function startup(){return __webpack_require(878)}t(webpack_require);return startup()}({0:function(e,t,r){const{requestLog:a}=r(916);const{restEndpointMethods:i}=r(468);const n=r(529);const p=[r(190),r(19),a,r(148),i,r(430),r(850)];const o=n.plugin(p);function DeprecatedOctokit(e){const t=e&&e.log&&e.log.warn?e.log.warn:console.warn;t('[@octokit/rest] const Octokit = require("@octokit/rest") is deprecated. Use const { Octokit } = require("@octokit/rest") instead');return new o(e)}const s=Object.assign(DeprecatedOctokit,{Octokit:o});Object.keys(o).forEach(e=>{if(o.hasOwnProperty(e)){s[e]=o[e]}});e.exports=s},2:function(e,t,r){"use strict";const a=r(87);const i=r(118);const n=r(494);const p=(e,t)=>{if(!e&&t){throw new Error("You can't specify a release without specifying platform")}e=e||a.platform();let r;if(e==="darwin"){if(!t&&a.platform()==="darwin"){t=a.release()}const e=t?Number(t.split(".")[0])>15?"macOS":"OS X":"macOS";r=t?i(t).name:"";return e+(r?" "+r:"")}if(e==="linux"){if(!t&&a.platform()==="linux"){t=a.release()}r=t?t.replace(/^(\d+.\d+).*/,"$1"):"";return"Linux"+(r?" "+r:"")}if(e==="win32"){if(!t&&a.platform()==="win32"){t=a.release()}r=t?n(t):"";return"Windows"+(r?" "+r:"")}return e};e.exports=p},9:function(e,t,r){var a=r(49);var i=function(){};var n=function(e){return e.setHeader&&typeof e.abort==="function"};var p=function(e){return e.stdio&&Array.isArray(e.stdio)&&e.stdio.length===3};var o=function(e,t,r){if(typeof t==="function")return o(e,null,t);if(!t)t={};r=a(r||i);var s=e._writableState;var d=e._readableState;var c=t.readable||t.readable!==false&&e.readable;var u=t.writable||t.writable!==false&&e.writable;var l=false;var m=function(){if(!e.writable)f()};var f=function(){u=false;if(!c)r.call(e)};var h=function(){c=false;if(!u)r.call(e)};var g=function(t){r.call(e,t?new Error("exited with error code: "+t):null)};var M=function(t){r.call(e,t)};var b=function(){process.nextTick(y)};var y=function(){if(l)return;if(c&&!(d&&(d.ended&&!d.destroyed)))return r.call(e,new Error("premature close"));if(u&&!(s&&(s.ended&&!s.destroyed)))return r.call(e,new Error("premature close"))};var A=function(){e.req.on("finish",f)};if(n(e)){e.on("complete",f);e.on("abort",b);if(e.req)A();else e.on("request",A)}else if(u&&!s){e.on("end",m);e.on("close",m)}if(p(e))e.on("exit",g);e.on("end",h);e.on("finish",f);if(t.error!==false)e.on("error",M);e.on("close",b);return function(){l=true;e.removeListener("complete",f);e.removeListener("abort",b);e.removeListener("request",A);if(e.req)e.req.removeListener("finish",f);e.removeListener("end",m);e.removeListener("close",m);e.removeListener("finish",f);e.removeListener("exit",g);e.removeListener("end",h);e.removeListener("error",M);e.removeListener("close",b)}};e.exports=o},11:function(e){e.exports=wrappy;function wrappy(e,t){if(e&&t)return wrappy(e)(t);if(typeof e!=="function")throw new TypeError("need wrapper function");Object.keys(e).forEach(function(t){wrapper[t]=e[t]});return wrapper;function wrapper(){var t=new Array(arguments.length);for(var r=0;r<t.length;r++){t[r]=arguments[r]}var a=e.apply(this,t);var i=t[t.length-1];if(typeof a==="function"&&a!==i){Object.keys(i).forEach(function(e){a[e]=i[e]})}return a}}},16:function(e){e.exports=require("tls")},17:function(e,t,r){"use strict";var a=this&&this.importDefault||function(e){return e&&e.esModule?e:{default:e}};Object.defineProperty(t,"esModule",{value:true});t.formatCompleteLayout=t.formatFilesToDisplay=void 0;const i=r(470);const n=a(r(521));const p=r(163);const o=r(504);const s=r(606);function formatFilesToDisplay(e,t,r){const a=e.slice(0,t).map(e=>[${p.escapeMarkdownTokens(e.filename)}](${e.blob_url}) (${e.changes} changes));let i="";if(e.length===0){i="No files changed."}else{i=" "+a.join("\n\n ");if(e.length>7){const t=e.length-7;i+=\n\n* and [${t} more files](${r}) changed}}return i}t.formatFilesToDisplay=formatFilesToDisplay;function formatCompleteLayout(e,t,r){var a,d;const c=https://github.com/${process.env.GITHUB_REPOSITORY};const u=${c}/tree/${process.env.GITHUB_REF};const l=s.formatCozyLayout(e,t,r);const m=l.sections[0];m.activityText=undefined;m.potentialAction=p.renderActions(${c}/actions/runs/${process.env.GITHUB_RUN_ID},e.data.html_url);let f=\${t.toUpperCase()}`;if(r){f=`${t.toUpperCase()} [${r}s]`}m.facts=[new o.Fact("Event type:",""+((a=process.env.GITHUB_EVENT_NAME)===null||a===void 0?void 0:a.toUpperCase())+""),new o.Fact("Status:",f),new o.Fact("Commit message:",p.escapeMarkdownTokens(e.data.commit.message)),new o.Fact("Repository & branch:",${u})];const h=i.getInput("custom-facts");if(h&&h.toLowerCase()!=="null"){try{let e=0;const t=n.default.parse(h);if(Array.isArray(t)){t.forEach(t=>{var r;if(t.name!==undefined&&t.value!==undefined){(r=m.facts)===null||r===void 0?void 0:r.push(new o.Fact(t.name+":",t.value));e++}})}i.info(Added ${e} custom facts.)}catch(e){i.warning("Invalid custom-facts value.")}}const g=i.getInput("environment");if(g!==""){m.facts.splice(1,0,new o.Fact("Environment:",`${g.toUpperCase()}``))}if(i.getInput("include-files").toLowerCase()==="true"){const t=i.getInput("allowed-file-len").toLowerCase();const r=parseInt(t===""?"7":t);const a=formatFilesToDisplay(e.data.files,r,e.data.html_url);(d=m.facts)===null||d===void 0?void 0:d.push({name:"Files changed:",value:a})}return l}t.formatCompleteLayout=formatCompleteLayout},18:function(){eval("require")("encoding")},19:function(e,t,r){e.exports=authenticationPlugin;const{Deprecation:a}=r(692);const i=r(49);const n=i((e,t)=>e.warn(t));const p=r(674);const o=r(471);const s=r(349);function authenticationPlugin(e,t){if(t.auth){e.authenticate=(()=>{n(e.log,new a('[@octokit/rest] octokit.authenticate() is deprecated and has no effect when "auth" option is set on Octokit constructor'))});return}const r={octokit:e,auth:false};e.authenticate=p.bind(null,r);e.hook.before("request",o.bind(null,r));e.hook.error("request",s.bind(null,r))}},20:function(e,t,r){"use strict";const a=r(129);const i=r(568);const n=r(881);function spawn(e,t,r){const p=i(e,t,r);const o=a.spawn(p.command,p.args,p.options);n.hookChildProcess(o,p);return o}function spawnSync(e,t,r){const p=i(e,t,r);const o=a.spawnSync(p.command,p.args,p.options);o.error=o.error||n.verifyENOENTSync(o.status,p);return o}e.exports=spawn;e.exports.spawn=spawn;e.exports.sync=spawnSync;e.exports._parse=i;e.exports._enoent=n},22:function(e,t,r){"use strict";Object.defineProperty(t,"esModule",{value:true});t.default=void 0;var a=_interopRequireDefault(r(78));function _interopRequireDefault(e){return e&&e.esModule?e:{default:e}}function parse(e){if(!(0,a.default)(e)){throw TypeError("Invalid UUID")}let t;const r=new Uint8Array(16);r[0]=(t=parseInt(e.slice(0,8),16))>>>24;r[1]=t>>>16&255;r[2]=t>>>8&255;r[3]=t&255;r[4]=(t=parseInt(e.slice(9,13),16))>>>8;r[5]=t&255;r[6]=(t=parseInt(e.slice(14,18),16))>>>8;r[7]=t&255;r[8]=(t=parseInt(e.slice(19,23),16))>>>8;r[9]=t&255;r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255;r[11]=t/4294967296&255;r[12]=t>>>24&255;r[13]=t>>>16&255;r[14]=t>>>8&255;r[15]=t&255;return r}var i=parse;t.default=i},39:function(e){"use strict";e.exports=(e=>{e=e||{};const t=e.env||process.env;const r=e.platform||process.platform;if(r!=="win32"){return"PATH"}return Object.keys(t).find(e=>e.toUpperCase()==="PATH")||"Path"})},47:function(e,t,r){e.exports=factory;const a=r(402);const i=r(855);function factory(e){const t=a.bind(null,e||[]);t.plugin=i.bind(null,e||[]);return t}},49:function(e,t,r){var a=r(11);e.exports=a(once);e.exports.strict=a(onceStrict);once.proto=once(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return once(this)},configurable:true});Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return onceStrict(this)},configurable:true})});function once(e){var t=function(){if(t.called)return t.value;t.called=true;return t.value=e.apply(this,arguments)};t.called=false;return t}function onceStrict(e){var t=function(){if(t.called)throw new Error(t.onceError);t.called=true;return t.value=e.apply(this,arguments)};var r=e.name||"Function wrapped with once";t.onceError=r+" shouldn't be called more than once";t.called=false;return t}},62:function(e,t,r){"use strict";Object.defineProperty(t,"esModule",{value:true});Object.defineProperty(t,"v1",{enumerable:true,get:function(){return a.default}});Object.defineProperty(t,"v3",{enumerable:true,get:function(){return i.default}});Object.defineProperty(t,"v4",{enumerable:true,get:function(){return n.default}});Object.defineProperty(t,"v5",{enumerable:true,get:function(){return p.default}});Object.defineProperty(t,"NIL",{enumerable:true,get:function(){return o.default}});Object.defineProperty(t,"version",{enumerable:true,get:function(){return s.default}});Object.defineProperty(t,"validate",{enumerable:true,get:function(){return d.default}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return c.default}});Object.defineProperty(t,"parse",{enumerable:true,get:function(){return u.default}});var a=_interopRequireDefault(r(893));var i=_interopRequireDefault(r(209));var n=_interopRequireDefault(r(733));var p=_interopRequireDefault(r(384));var o=_interopRequireDefault(r(327));var s=_interopRequireDefault(r(695));var d=_interopRequireDefault(r(78));var c=_interopRequireDefault(r(411));var u=_interopRequireDefault(r(22));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}},63:function(e,t,r){"use strict";var a=r(513);class BlankLine extends a.Node{constructor(){super(a.Type.BLANK_LINE)}get includesTrailingLines(){return true}parse(e,t){this.context=e;this.range=new a.Range(t,t+1);return t+1}}class CollectionItem extends a.Node{constructor(e,t){super(e,t);this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;const{parseNode:r,src:i}=e;let{atLineStart:n,lineStart:p}=e;if(!n&&this.type===a.Type.SEQ_ITEM)this.error=new a.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line");const o=n?t-p:e.indent;let s=a.Node.endOfWhiteSpace(i,t+1);let d=i[s];const c=d==="#";const u=[];let l=null;while(d==="\n"||d==="#"){if(d==="#"){const e=a.Node.endOfLine(i,s+1);u.push(new a.Range(s,e));s=e}else{n=true;p=s+1;const e=a.Node.endOfWhiteSpace(i,p);if(i[e]==="\n"&&u.length===0){l=new BlankLine;p=l.parse({src:i},p)}s=a.Node.endOfIndent(i,p)}d=i[s]}if(a.Node.nextNodeIsIndented(d,s-(p+o),this.type!==a.Type.SEQ_ITEM)){this.node=r({atLineStart:n,inCollection:false,indent:o,lineStart:p,parent:this},s)}else if(d&&p>t+1){s=p-1}if(this.node){if(l){const t=e.parent.items||e.parent.contents;if(t)t.push(l)}if(u.length)Array.prototype.push.apply(this.props,u);s=this.node.range.end}else{if(c){const e=u[0];this.props.push(e);s=e.end}else{s=a.Node.endOfLine(i,t+1)}}const m=this.node?this.node.valueRange.end:s;this.valueRange=new a.Range(t,m);return s}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.node?this.node.setOrigRanges(e,t):t}toString(){const{context:{src:e},node:t,range:r,value:i}=this;if(i!=null)return i;const n=t?e.slice(r.start,t.range.start)+String(t):e.slice(r.start,r.end);return a.Node.addStringTerminator(e,r.end,n)}}class Comment extends a.Node{constructor(){super(a.Type.COMMENT)}parse(e,t){this.context=e;const r=this.parseComment(t);this.range=new a.Range(t,r);return r}}function grabCollectionEndComments(e){let t=e;while(t instanceof CollectionItem)t=t.node;if(!(t instanceof Collection))return null;const r=t.items.length;let i=-1;for(let e=r-1;e>=0;--e){const r=t.items[e];if(r.type===a.Type.COMMENT){const{indent:t,lineStart:a}=r.context;if(t>0&&r.range.start>=a+t)break;i=e}else if(r.type===a.Type.BLANK_LINE)i=e;else break}if(i===-1)return null;const n=t.items.splice(i,r-i);const p=n[0].range.start;while(true){t.range.end=p;if(t.valueRange&&t.valueRange.end>p)t.valueRange.end=p;if(t===e)break;t=t.context.parent}return n}class Collection extends a.Node{static nextContentHasIndent(e,t,r){const i=a.Node.endOfLine(e,t)+1;t=a.Node.endOfWhiteSpace(e,i);const n=e[t];if(!n)return false;if(t>=i+r)return true;if(n!=="#"&&n!=="\n")return false;return Collection.nextContentHasIndent(e,t,r)}constructor(e){super(e.type===a.Type.SEQ_ITEM?a.Type.SEQ:a.Type.MAP);for(let t=e.props.length-1;t>=0;--t){if(e.props[t].start<e.context.lineStart){this.props=e.props.slice(0,t+1);e.props=e.props.slice(t+1);const r=e.props[0]||e.valueRange;e.range.start=r.start;break}}this.items=[e];const t=grabCollectionEndComments(e);if(t)Array.prototype.push.apply(this.items,t)}get includesTrailingLines(){return this.items.length>0}parse(e,t){this.context=e;const{parseNode:r,src:i}=e;let n=a.Node.startOfLine(i,t);const p=this.items[0];p.context.parent=this;this.valueRange=a.Range.copy(p.valueRange);const o=p.range.start-p.context.lineStart;let s=t;s=a.Node.normalizeOffset(i,s);let d=i[s];let c=a.Node.endOfWhiteSpace(i,n)===s;let u=false;while(d){while(d==="\n"||d==="#"){if(c&&d==="\n"&&!u){const e=new BlankLine;s=e.parse({src:i},s);this.valueRange.end=s;if(s>=i.length){d=null;break}this.items.push(e);s-=1}else if(d==="#"){if(s<n+o&&!Collection.nextContentHasIndent(i,s,o)){return s}const e=new Comment;s=e.parse({indent:o,lineStart:n,src:i},s);this.items.push(e);this.valueRange.end=s;if(s>=i.length){d=null;break}}n=s+1;s=a.Node.endOfIndent(i,n);if(a.Node.atBlank(i,s)){const e=a.Node.endOfWhiteSpace(i,s);const t=i[e];if(!t||t==="\n"||t==="#"){s=e}}d=i[s];c=true}if(!d){break}if(s!==n+o&&(c||d!==":")){if(s<n+o){if(n>t)s=n;break}else if(!this.error){const e="All collection items must start at the same column";this.error=new a.YAMLSyntaxError(this,e)}}if(p.type===a.Type.SEQ_ITEM){if(d!=="-"){if(n>t)s=n;break}}else if(d==="-"&&!this.error){const e=i[s+1];if(!e||e==="\n"||e==="\t"||e===" "){const e="A collection cannot be both a mapping and a sequence";this.error=new a.YAMLSyntaxError(this,e)}}const e=r({atLineStart:c,inCollection:true,indent:o,lineStart:n,parent:this},s);if(!e)return s;this.items.push(e);this.valueRange.end=e.valueRange.end;s=a.Node.normalizeOffset(i,e.range.end);d=i[s];c=false;u=e.includesTrailingLines;if(d){let e=s-1;let t=i[e];while(t===" "||t==="\t")t=i[--e];if(t==="\n"){n=e+1;c=true}}const l=grabCollectionEndComments(e);if(l)Array.prototype.push.apply(this.items,l)}return s}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(r=>{t=r.setOrigRanges(e,t)});return t}toString(){const{context:{src:e},items:t,range:r,value:i}=this;if(i!=null)return i;let n=e.slice(r.start,t[0].range.start)+String(t[0]);for(let e=1;e<t.length;++e){const r=t[e];const{atLineStart:a,indent:i}=r.context;if(a)for(let e=0;e<i;++e)n+=" ";n+=String(r)}return a.Node.addStringTerminator(e,r.end,n)}}class Directive extends a.Node{constructor(){super(a.Type.DIRECTIVE);this.name=null}get parameters(){const e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){const{src:t}=this.context;let r=e;let a=t[r];while(a&&a!=="\n"&&a!=="\t"&&a!==" ")a=t[r+=1];this.name=t.slice(e,r);return r}parseParameters(e){const{src:t}=this.context;let r=e;let i=t[r];while(i&&i!=="\n"&&i!=="#")i=t[r+=1];this.valueRange=new a.Range(e,r);return r}parse(e,t){this.context=e;let r=this.parseName(t+1);r=this.parseParameters(r);r=this.parseComment(r);this.range=new a.Range(t,r);return r}}class Document extends a.Node{static startCommentOrEndBlankLine(e,t){const r=a.Node.endOfWhiteSpace(e,t);const i=e[r];return i==="#"||i==="\n"?r:t}constructor(){super(a.Type.DOCUMENT);this.directives=null;this.contents=null;this.directivesEndMarker=null;this.documentEndMarker=null}parseDirectives(e){const{src:t}=this.context;this.directives=[];let r=true;let i=false;let n=e;while(!a.Node.atDocumentBoundary(t,n,a.Char.DIRECTIVES_END)){n=Document.startCommentOrEndBlankLine(t,n);switch(t[n]){case"\n":if(r){const e=new BlankLine;n=e.parse({src:t},n);if(n<t.length){this.directives.push(e)}}else{n+=1;r=true}break;case"#":{const e=new Comment;n=e.parse({src:t},n);this.directives.push(e);r=false}break;case"%":{const e=new Directive;n=e.parse({parent:this,src:t},n);this.directives.push(e);i=true;r=false}break;default:if(i){this.error=new a.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return n}}if(t[n]){this.directivesEndMarker=new a.Range(n,n+3);return n+3}if(i){this.error=new a.YAMLSemanticError(this,"Missing directives-end indicator line")}else if(this.directives.length>0){this.contents=this.directives;this.directives=[]}return n}parseContents(e){const{parseNode:t,src:r}=this.context;if(!this.contents)this.contents=[];let i=e;while(r[i-1]==="-")i-=1;let n=a.Node.endOfWhiteSpace(r,e);let p=i===e;this.valueRange=new a.Range(n);while(!a.Node.atDocumentBoundary(r,n,a.Char.DOCUMENT_END)){switch(r[n]){case"\n":if(p){const e=new BlankLine;n=e.parse({src:r},n);if(n<r.length){this.contents.push(e)}}else{n+=1;p=true}i=n;break;case"#":{const e=new Comment;n=e.parse({src:r},n);this.contents.push(e);p=false}break;default:{const e=a.Node.endOfIndent(r,n);const o={atLineStart:p,indent:-1,inFlow:false,inCollection:false,lineStart:i,parent:this};const s=t(o,e);if(!s)return this.valueRange.end=e;this.contents.push(s);n=s.range.end;p=false;const d=grabCollectionEndComments(s);if(d)Array.prototype.push.apply(this.contents,d)}}n=Document.startCommentOrEndBlankLine(r,n)}this.valueRange.end=n;if(r[n]){this.documentEndMarker=new a.Range(n,n+3);n+=3;if(r[n]){n=a.Node.endOfWhiteSpace(r,n);if(r[n]==="#"){const e=new Comment;n=e.parse({src:r},n);this.contents.push(e)}switch(r[n]){case"\n":n+=1;break;case undefined:break;default:this.error=new a.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}}return n}parse(e,t){e.root=this;this.context=e;const{src:r}=e;let a=r.charCodeAt(t)===65279?t+1:t;a=this.parseDirectives(a);a=this.parseContents(a);return a}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.directives.forEach(r=>{t=r.setOrigRanges(e,t)});if(this.directivesEndMarker)t=this.directivesEndMarker.setOrigRange(e,t);this.contents.forEach(r=>{t=r.setOrigRanges(e,t)});if(this.documentEndMarker)t=this.documentEndMarker.setOrigRange(e,t);return t}toString(){const{contents:e,directives:t,value:r}=this;if(r!=null)return r;let i=t.join("");if(e.length>0){if(t.length>0||e[0].type===a.Type.COMMENT)i+="---\n";i+=e.join("")}if(i[i.length-1]!=="\n")i+="\n";return i}}class Alias extends a.Node{parse(e,t){this.context=e;const{src:r}=e;let i=a.Node.endOfIdentifier(r,t+1);this.valueRange=new a.Range(t+1,i);i=a.Node.endOfWhiteSpace(r,i);i=this.parseComment(i);return i}}const i={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"};class BlockValue extends a.Node{constructor(e,t){super(e,t);this.blockIndent=null;this.chomping=i.CLIP;this.header=null}get includesTrailingLines(){return this.chomping===i.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;const{indent:r,src:n}=this.context;if(this.valueRange.isEmpty())return"";let p=null;let o=n[t-1];while(o==="\n"||o==="\t"||o===" "){t-=1;if(t<=e){if(this.chomping===i.KEEP)break;else return""}if(o==="\n")p=t;o=n[t-1]}let s=t+1;if(p){if(this.chomping===i.KEEP){s=p;t=this.valueRange.end}else{t=p}}const d=r+this.blockIndent;const c=this.type===a.Type.BLOCKFOLDED;let u=true;let l="";let m="";let f=false;for(let r=e;r<t;++r){for(let e=0;e<d;++e){if(n[r]!==" ")break;r+=1}const e=n[r];if(e==="\n"){if(m==="\n")l+="\n";else m="\n"}else{const i=a.Node.endOfLine(n,r);const p=n.slice(r,i);r=i;if(c&&(e===" "||e==="\t")&&r<s){if(m===" ")m="\n";else if(!f&&!u&&m==="\n")m="\n\n";l+=m+p;m=i<t&&n[i]||"";f=true}else{l+=m+p;m=c&&r<s?" ":"\n";f=false}if(u&&p!=="")u=false}}return this.chomping===i.STRIP?l:l+"\n"}parseBlockHeader(e){const{src:t}=this.context;let r=e+1;let n="";while(true){const p=t[r];switch(p){case"-":this.chomping=i.STRIP;break;case"+":this.chomping=i.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":n+=p;break;default:this.blockIndent=Number(n)||null;this.header=new a.Range(e,r);return r}r+=1}}parseBlockValue(e){const{indent:t,src:r}=this.context;const n=!!this.blockIndent;let p=e;let o=e;let s=1;for(let e=r[p];e==="\n";e=r[p]){p+=1;if(a.Node.atDocumentBoundary(r,p))break;const e=a.Node.endOfBlockIndent(r,t,p);if(e===null)break;const i=r[e];const d=e-(p+t);if(!this.blockIndent){if(r[e]!=="\n"){if(d<s){const e="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new a.YAMLSemanticError(this,e)}this.blockIndent=d}else if(d>s){s=d}}else if(i&&i!=="\n"&&d<this.blockIndent){if(r[e]==="#")break;if(!this.error){const e=n?"explicit indentation indicator":"first line";const t=Block scalars must not be less indented than their ${e};this.error=new a.YAMLSemanticError(this,t)}}if(r[e]==="\n"){p=e}else{p=o=a.Node.endOfLine(r,e)}}if(this.chomping!==i.KEEP){p=r[o]?o+1:o}this.valueRange=new a.Range(e+1,p);return p}parse(e,t){this.context=e;const{src:r}=e;let i=this.parseBlockHeader(t);i=a.Node.endOfWhiteSpace(r,i);i=this.parseComment(i);i=this.parseBlockValue(i);return i}setOrigRanges(e,t){t=super.setOrigRanges(e,t);return this.header?this.header.setOrigRange(e,t):t}}class FlowCollection extends a.Node{constructor(e,t){super(e,t);this.items=null}prevNodeIsJsonLike(e=this.items.length){const t=this.items[e-1];return!!t&&(t.jsonLike||t.type===a.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,t){this.context=e;const{parseNode:r,src:i}=e;let{indent:n,lineStart:p}=e;let o=i[t];this.items=[{char:o,offset:t}];let s=a.Node.endOfWhiteSpace(i,t+1);o=i[s];while(o&&o!=="]"&&o!=="}"){switch(o){case"\n":{p=s+1;const e=a.Node.endOfWhiteSpace(i,p);if(i[e]==="\n"){const e=new BlankLine;p=e.parse({src:i},p);this.items.push(e)}s=a.Node.endOfIndent(i,p);if(s<=p+n){o=i[s];if(s<p+n||o!=="]"&&o!=="}"){const e="Insufficient indentation in flow collection";this.error=new a.YAMLSemanticError(this,e)}}}break;case",":{this.items.push({char:o,offset:s});s+=1}break;case"#":{const e=new Comment;s=e.parse({src:i},s);this.items.push(e)}break;case"?":case":":{const e=i[s+1];if(e==="\n"||e==="\t"||e===" "||e===","||o===":"&&this.prevNodeIsJsonLike()){this.items.push({char:o,offset:s});s+=1;break}}default:{const e=r({atLineStart:false,inCollection:false,inFlow:true,indent:-1,lineStart:p,parent:this},s);if(!e){this.valueRange=new a.Range(t,s);return s}this.items.push(e);s=a.Node.normalizeOffset(i,e.range.end)}}s=a.Node.endOfWhiteSpace(i,s);o=i[s]}this.valueRange=new a.Range(t,s+1);if(o){this.items.push({char:o,offset:s});s=a.Node.endOfWhiteSpace(i,s+1);s=this.parseComment(s)}return s}setOrigRanges(e,t){t=super.setOrigRanges(e,t);this.items.forEach(r=>{if(r instanceof a.Node){t=r.setOrigRanges(e,t)}else if(e.length===0){r.origOffset=r.offset}else{let a=t;while(a<e.length){if(e[a]>r.offset)break;else++a}r.origOffset=r.offset+a;t=a}});return t}toString(){const{context:{src:e},items:t,range:r,value:i}=this;if(i!=null)return i;const n=t.filter(e=>e instanceof a.Node);let p="";let o=r.start;n.forEach(t=>{const r=e.slice(o,t.range.start);o=t.range.end;p+=r+String(t);if(p[p.length-1]==="\n"&&e[o-1]!=="\n"&&e[o]==="\n"){o+=1}});p+=e.slice(o,r.end);return a.Node.addStringTerminator(e,r.end,p)}}class QuoteDouble extends a.Node{static endOfQuote(e,t){let r=e[t];while(r&&r!=='"'){t+=r==="\"?2:1;r=e[t]}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:r}=this.valueRange;const{indent:i,src:n}=this.context;if(n[r-1]!=='"')e.push(new a.YAMLSyntaxError(this,'Missing closing "quote'));let p="";for(let o=t+1;o<r-1;++o){const t=n[o];if(t==="\n"){if(a.Node.atDocumentBoundary(n,o+1))e.push(new a.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:r,error:s}=a.Node.foldNewline(n,o,i);p+=t;o=r;if(s)e.push(new a.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(t==="\"){o+=1;switch(n[o]){case"0":p+="\0";break;case"a":p+="";break;case"b":p+="\b";break;case"e":p+="";break;case"f":p+="\f";break;case"n":p+="\n";break;case"r":p+="\r";break;case"t":p+="\t";break;case"v":p+="\v";break;case"N":p+="…";break;case"":p+=" ";break;case"L":p+="\u2028";break;case"P":p+="\u2029";break;case" ":p+=" ";break;case'"':p+='"';break;case"/":p+="/";break;case"\":p+="\";break;case"\t":p+="\t";break;case"x":p+=this.parseCharCode(o+1,2,e);o+=2;break;case"u":p+=this.parseCharCode(o+1,4,e);o+=4;break;case"U":p+=this.parseCharCode(o+1,8,e);o+=8;break;case"\n":while(n[o+1]===" "||n[o+1]==="\t")o+=1;break;default:e.push(new a.YAMLSyntaxError(this,Invalid escape sequence ${n.substr(o-1,2)}));p+="\"+n[o]}}else if(t===" "||t==="\t"){const e=o;let r=n[o+1];while(r===" "||r==="\t"){o+=1;r=n[o+1]}if(r!=="\n")p+=o>e?n.slice(e,o+1):t}else{p+=t}}return e.length>0?{errors:e,str:p}:p}parseCharCode(e,t,r){const{src:i}=this.context;const n=i.substr(e,t);const p=n.length===t&&/^[0-9a-fA-F]+$/.test(n);const o=p?parseInt(n,16):NaN;if(isNaN(o)){r.push(new a.YAMLSyntaxError(this,Invalid escape sequence ${i.substr(e-2,t+2)}));return i.substr(e-2,t+2)}return String.fromCodePoint(o)}parse(e,t){this.context=e;const{src:r}=e;let i=QuoteDouble.endOfQuote(r,t+1);this.valueRange=new a.Range(t,i);i=a.Node.endOfWhiteSpace(r,i);i=this.parseComment(i);return i}}class QuoteSingle extends a.Node{static endOfQuote(e,t){let r=e[t];while(r){if(r==="'"){if(e[t+1]!=="'")break;r=e[t+=2]}else{r=e[t+=1]}}return t+1}get strValue(){if(!this.valueRange||!this.context)return null;const e=[];const{start:t,end:r}=this.valueRange;const{indent:i,src:n}=this.context;if(n[r-1]!=="'")e.push(new a.YAMLSyntaxError(this,"Missing closing 'quote"));let p="";for(let o=t+1;o<r-1;++o){const t=n[o];if(t==="\n"){if(a.Node.atDocumentBoundary(n,o+1))e.push(new a.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));const{fold:t,offset:r,error:s}=a.Node.foldNewline(n,o,i);p+=t;o=r;if(s)e.push(new a.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(t==="'"){p+=t;o+=1;if(n[o]!=="'")e.push(new a.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."))}else if(t===" "||t==="\t"){const e=o;let r=n[o+1];while(r===" "||r==="\t"){o+=1;r=n[o+1]}if(r!=="\n")p+=o>e?n.slice(e,o+1):t}else{p+=t}}return e.length>0?{errors:e,str:p}:p}parse(e,t){this.context=e;const{src:r}=e;let i=QuoteSingle.endOfQuote(r,t+1);this.valueRange=new a.Range(t,i);i=a.Node.endOfWhiteSpace(r,i);i=this.parseComment(i);return i}}function createNewNode(e,t){switch(e){case a.Type.ALIAS:return new Alias(e,t);case a.Type.BLOCK_FOLDED:case a.Type.BLOCK_LITERAL:return new BlockValue(e,t);case a.Type.FLOW_MAP:case a.Type.FLOW_SEQ:return new FlowCollection(e,t);case a.Type.MAP_KEY:case a.Type.MAP_VALUE:case a.Type.SEQ_ITEM:return new CollectionItem(e,t);case a.Type.COMMENT:case a.Type.PLAIN:return new a.PlainValue(e,t);case a.Type.QUOTE_DOUBLE:return new QuoteDouble(e,t);case a.Type.QUOTE_SINGLE:return new QuoteSingle(e,t);default:return null}}class ParseContext{static parseType(e,t,r){switch(e[t]){case"":return a.Type.ALIAS;case">":return a.Type.BLOCK_FOLDED;case"|":return a.Type.BLOCK_LITERAL;case"{":return a.Type.FLOW_MAP;case"[":return a.Type.FLOW_SEQ;case"?":return!r&&a.Node.atBlank(e,t+1,true)?a.Type.MAP_KEY:a.Type.PLAIN;case":":return!r&&a.Node.atBlank(e,t+1,true)?a.Type.MAP_VALUE:a.Type.PLAIN;case"-":return!r&&a.Node.atBlank(e,t+1,true)?a.Type.SEQ_ITEM:a.Type.PLAIN;case'"':return a.Type.QUOTE_DOUBLE;case"'":return a.Type.QUOTE_SINGLE;default:return a.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:r,inFlow:i,indent:n,lineStart:p,parent:o}={}){a._defineProperty(this,"parseNode",(e,t)=>{if(a.Node.atDocumentBoundary(this.src,t))return null;const r=new ParseContext(this,e);const{props:i,type:n,valueStart:p}=r.parseProps(t);const o=createNewNode(n,i);let s=o.parse(r,p);o.range=new a.Range(t,s);if(s<=t){o.error=new Error(Node#parse consumed no characters);o.error.parseEnd=s;o.error.source=o;o.range.end=t+1}if(r.nodeStartsCollection(o)){if(!o.error&&!r.atLineStart&&r.parent.type===a.Type.DOCUMENT){o.error=new a.YAMLSyntaxError(o,"Block collection must not have preceding content here (e.g. directives-end indicator)")}const e=new Collection(o);s=e.parse(new ParseContext(r),s);e.range=new a.Range(t,s);return e}return o});this.atLineStart=t!=null?t:e.atLineStart||false;this.inCollection=r!=null?r:e.inCollection||false;this.inFlow=i!=null?i:e.inFlow||false;this.indent=n!=null?n:e.indent;this.lineStart=p!=null?p:e.lineStart;this.parent=o!=null?o:e.parent||{};this.root=e.root;this.src=e.src}nodeStartsCollection(e){const{inCollection:t,inFlow:r,src:i}=this;if(t||r)return false;if(e instanceof CollectionItem)return true;let n=e.range.end;if(i[n]==="\n"||i[n-1]==="\n")return false;n=a.Node.endOfWhiteSpace(i,n);return i[n]===":"}parseProps(e){const{inFlow:t,parent:r,src:i}=this;const n=[];let p=false;e=this.atLineStart?a.Node.endOfIndent(i,e):a.Node.endOfWhiteSpace(i,e);let o=i[e];while(o===a.Char.ANCHOR||o===a.Char.COMMENT||o===a.Char.TAG||o==="\n"){if(o==="\n"){const t=e+1;const n=a.Node.endOfIndent(i,t);const o=n-(t+this.indent);const s=r.type===a.Type.SEQ_ITEM&&r.context.atLineStart;if(!a.Node.nextNodeIsIndented(i[n],o,!s))break;this.atLineStart=true;this.lineStart=t;p=false;e=n}else if(o===a.Char.COMMENT){const t=a.Node.endOfLine(i,e+1);n.push(new a.Range(e,t));e=t}else{let t=a.Node.endOfIdentifier(i,e+1);if(o===a.Char.TAG&&i[t]===","&&/^[a-zA-Z0-9-]+.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(i.slice(e+1,t+13))){t=a.Node.endOfIdentifier(i,t+5)}n.push(new a.Range(e,t));p=true;e=a.Node.endOfWhiteSpace(i,t)}o=i[e]}if(p&&o===":"&&a.Node.atBlank(i,e+1,true))e-=1;const s=ParseContext.parseType(i,e,t);return{props:n,type:s,valueStart:e}}}function parse(e){const t=[];if(e.indexOf("\r")!==-1){e=e.replace(/\r\n?/g,(e,r)=>{if(e.length>1)t.push(r);return"\n"})}const r=[];let a=0;do{const t=new Document;const i=new ParseContext({src:e});a=t.parse(i,a);r.push(t)}while(a<e.length);r.setOrigRanges=(()=>{if(t.length===0)return false;for(let e=1;e<t.length;++e)t[e]-=e;let e=0;for(let a=0;a<r.length;++a){e=r[a].setOrigRanges(t,e)}t.splice(0,t.length);return true});r.toString=(()=>r.join("...\n"));return r}t.parse=parse},68:function(e,t){"use strict";Object.defineProperty(t,"esModule",{value:true});const r=/^v1./;const a=/^ghs/;const i=/^ghu/;async function auth(e){const t=e.split(/./).length===3;const n=r.test(e)||a.test(e);const p=i.test(e);const o=t?"app":n?"installation":p?"user-to-server":"oauth";return{type:"token",token:e,tokenType:o}}function withAuthorizationPrefix(e){if(e.split(/./).length===3){returnbearer ${e}}returntoken ${e}}async function hook(e,t,r,a){const i=t.endpoint.merge(r,a);i.headers.authorization=withAuthorizationPrefix(e);return t(i)}const n=function createTokenAuth(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")}e=e.replace(/^(token|bearer) +/i,"");return Object.assign(auth.bind(null,e),{hook:hook.bind(null,e)})};t.createTokenAuth=n},78:function(e,t,r){"use strict";Object.defineProperty(t,"esModule",{value:true});t.default=void 0;var a=_interopRequireDefault(r(456));function _interopRequireDefault(e){return e&&e.esModule?e:{default:e}}function validate(e){return typeof e==="string"&&a.default.test(e)}var i=validate;t.default=i},82:function(e,t){"use strict";Object.defineProperty(t,"esModule",{value:true});t.toCommandProperties=t.toCommandValue=void 0;function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function toCommandProperties(e){if(!Object.keys(e).length){return{}}return{title:e.title,file:e.file,line:e.startLine,endLine:e.endLine,col:e.startColumn,endColumn:e.endColumn}}t.toCommandProperties=toCommandProperties},87:function(e){e.exports=require("os")},102:function(e,t,r){"use strict";var a=this&&this.createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;Object.defineProperty(e,a,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var i=this&&this.setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var n=this&&this.importStar||function(e){if(e&&e.esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.hasOwnProperty.call(e,r))a(t,e,r);i(t,e);return t};Object.defineProperty(t,"esModule",{value:true});t.prepareKeyValueMessage=t.issueFileCommand=void 0;const p=n(r(747));const o=n(r(87));const s=r(62);const d=r(82);function issueFileCommand(e,t){const r=process.env[GITHUB_${e}];if(!r){throw new Error(Unable to find environment variable for file command ${e})}if(!p.existsSync(r)){throw new Error(Missing file at path: ${r})}p.appendFileSync(r,${d.toCommandValue(t)}${o.EOL},{encoding:"utf8"})}t.issueFileCommand=issueFileCommand;function prepareKeyValueMessage(e,t){const r=ghadelimiter_${s.v4()};const a=d.toCommandValue(t);if(e.includes(r)){throw new Error(Unexpected input: name should not contain the delimiter "${r}")}if(a.includes(r)){throw new Error(Unexpected input: value should not contain the delimiter "${r}")}return${e}<<${r}${o.EOL}${a}${o.EOL}${r}}t.prepareKeyValueMessage=prepareKeyValueMessage},118:function(e,t,r){"use strict";const a=r(87);const i=new Map([[21,["Monterey","12"]],[20,["Big Sur","11"]],[19,["Catalina","10.15"]],[18,["Mojave","10.14"]],[17,["High Sierra","10.13"]],[16,["Sierra","10.12"]],[15,["El Capitan","10.11"]],[14,["Yosemite","10.10"]],[13,["Mavericks","10.9"]],[12,["Mountain Lion","10.8"]],[11,["Lion","10.7"]],[10,["Snow Leopard","10.6"]],[9,["Leopard","10.5"]],[8,["Tiger","10.4"]],[7,["Panther","10.3"]],[6,["Jaguar","10.2"]],[5,["Puma","10.1"]]]);const n=e=>{e=Number((e||a.release()).split(".")[0]);const[t,r]=i.get(e);return{name:t,version:r}};e.exports=n;e.exports.default=n},120:function(e){"use strict";e.exports.mixin=function mixin(e,t){const r=Object.getOwnPropertyNames(t);for(let a=0;a<r.length;++a){Object.defineProperty(e,r[a],Object.getOwnPropertyDescriptor(t,r[a]))}};e.exports.wrapperSymbol=Symbol("wrapper");e.exports.implSymbol=Symbol("impl");e.exports.wrapperForImpl=function(t){return t[e.exports.wrapperSymbol]};e.exports.implForWrapper=function(t){return t[e.exports.implSymbol]}},126:function(e){var t=200;var r="lodash_hash_undefined__";var a=1/0;var i="[object Function]",n="[object GeneratorFunction]";var p=/[\^$.+?()[]{}|]/g;var o=/^[object .+?Constructor]$/;var s=typeof global=="object"&&global&&global.Object===Object&&global;var d=typeof self=="object"&&self&&self.Object===Object&&self;var c=s||d||Function("return this")();function arrayIncludes(e,t){var r=e?e.length:0;return!!r&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,r){var a=-1,i=e?e.length:0;while(++a<i){if(r(t,e[a])){return true}}return false}function baseFindIndex(e,t,r,a){var i=e.length,n=r+(a?1:-1);while(a?n--:++n<i){if(t(e[n],n,e)){return n}}return-1}function baseIndexOf(e,t,r){if(t!==t){return baseFindIndex(e,baseIsNaN,r)}var a=r-1,i=e.length;while(++a<i){if(e[a]===t){return a}}return-1}function baseIsNaN(e){return e!==e}function cacheHas(e,t){return e.has(t)}function getValue(e,t){return e==null?undefined:e[t]}function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function setToArray(e){var t=-1,r=Array(e.size);e.forEach(function(e){r[++t]=e});return r}var u=Array.prototype,l=Function.prototype,m=Object.prototype;var f=c["core-js_shared"];var h=function(){var e=/[^.]+$/.exec(f&&f.keys&&f.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();var g=l.toString;var M=m.hasOwnProperty;var b=m.toString;var y=RegExp("^"+g.call(M).replace(p,"\$&").replace(/hasOwnProperty|(function).?(?=\()| for .+?(?=\])/g,"$1.?")+"$");var A=u.splice;var v=getNative(c,"Map"),w=getNative(c,"Set"),q=getNative(Object,"create");function Hash(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var a=e[t];this.set(a[0],a[1])}}function hashClear(){this.data=q?q(null):{}}function hashDelete(e){return this.has(e)&&delete this.data[e]}function hashGet(e){var t=this.data;if(q){var a=t[e];return a===r?undefined:a}return M.call(t,e)?t[e]:undefined}function hashHas(e){var t=this.data;return q?t[e]!==undefined:M.call(t,e)}function hashSet(e,t){var a=this.data;a[e]=q&&t===undefined?r:t;return this}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;function ListCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var a=e[t];this.set(a[0],a[1])}}function listCacheClear(){this.data=[]}function listCacheDelete(e){var t=this.data,r=assocIndexOf(t,e);if(r<0){return false}var a=t.length-1;if(r==a){t.pop()}else{A.call(t,r,1)}return true}function listCacheGet(e){var t=this.data,r=assocIndexOf(t,e);return r<0?undefined:t[r][1]}function listCacheHas(e){return assocIndexOf(this.data,e)>-1}function listCacheSet(e,t){var r=this.data,a=assocIndexOf(r,e);if(a<0){r.push([e,t])}else{r[a][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,r=e?e.length:0;this.clear();while(++t<r){var a=e[t];this.set(a[0],a[1])}}function mapCacheClear(){this.data={hash:new Hash,map:new(v||ListCache),string:new Hash}}function mapCacheDelete(e){return getMapData(this,e)"delete"}function mapCacheGet(e){return getMapData(this,e).get(e)}function mapCacheHas(e){return getMapData(this,e).has(e)}function mapCacheSet(e,t){getMapData(this,e).set(e,t);return this}MapCache.prototype.clear=mapCacheClear;MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;function SetCache(e){var t=-1,r=e?e.length:0;this.data=new MapCache;while(++t<r){this.add(e[t])}}function setCacheAdd(e){this.data.set(e,r);return this}function setCacheHas(e){return this.data.has(e)}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;function assocIndexOf(e,t){var r=e.length;while(r--){if(eq(e[r][0],t)){return r}}return-1}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?y:o;return t.test(toSource(e))}function baseUniq(e,r,a){var i=-1,n=arrayIncludes,p=e.length,o=true,s=[],d=s;if(a){o=false;n=arrayIncludesWith}else if(p>=t){var c=r?null:(e);if(c){return setToArray(c)}o=false;n=cacheHas;d=new SetCache}else{d=r?[]:s}e:while(++i<p){var u=e[i],l=r?r(u):u;u=a||u!==0?u:0;if(o&&l===l){var m=d.length;while(m--){if(d[m]===l){continue e}}if(r){d.push(l)}s.push(u)}else if(!n(d,l,a)){if(d!==s){d.push(l)}s.push(u)}}return s}var =!(w&&1/setToArray(new w([,-0]))[1]==a)?noop:function(e){return new w(e)};function getMapData(e,t){var r=e.data;return isKeyable(t)?r[typeof t=="string"?"string":"hash"]:r.map}function getNative(e,t){var r=getValue(e,t);return baseIsNative(r)?r:undefined}function isKeyable(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="proto__":e===null}function isMasked(e){return!!h&&h in e}function toSource(e){if(e!=null){try{return g.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function uniq(e){return e&&e.length?baseUniq(e):[]}function eq(e,t){return e===t||e!==e&&t!==t}function isFunction(e){var t=isObject(e)?b.call(e):"";return t==i||t==n}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function noop(){}e.exports=uniq},129:function(e){e.exports=require("child_process")},141:function(e,t,r){"use strict";var a=r(631);var i=r(16);var n=r(605);var p=r(211);var o=r(614);var s=r(357);var d=r(669);t.httpOverHttp=httpOverHttp;t.httpsOverHttp=httpsOverHttp;t.httpOverHttps=httpOverHttps;t.httpsOverHttps=httpsOverHttps;function httpOverHttp(e){var t=new TunnelingAgent(e);t.request=n.request;return t}function httpsOverHttp(e){var t=new TunnelingAgent(e);t.request=n.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function httpOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;return t}function httpsOverHttps(e){var t=new TunnelingAgent(e);t.request=p.request;t.createSocket=createSecureSocket;t.defaultPort=443;return t}function TunnelingAgent(e){var t=this;t.options=e||{};t.proxyOptions=t.options.proxy||{};t.maxSockets=t.options.maxSockets||n.Agent.defaultMaxSockets;t.requests=[];t.sockets=[];t.on("free",function onFree(e,r,a,i){var n=toOptions(r,a,i);for(var p=0,o=t.requests.length;p<o;++p){var s=t.requests[p];if(s.host===n.host&&s.port===n.port){t.requests.splice(p,1);s.request.onSocket(e);return}}e.destroy();t.removeSocket(e)})}d.inherits(TunnelingAgent,o.EventEmitter);TunnelingAgent.prototype.addRequest=function addRequest(e,t,r,a){var i=this;var n=mergeOptions({request:e},i.options,toOptions(t,r,a));if(i.sockets.length>=this.maxSockets){i.requests.push(n);return}i.createSocket(n,function(t){t.on("free",onFree);t.on("close",onCloseOrRemove);t.on("agentRemove",onCloseOrRemove);e.onSocket(t);function onFree(){i.emit("free",t,n)}function onCloseOrRemove(e){i.removeSocket(t);t.removeListener("free",onFree);t.removeListener("close",onCloseOrRemove);t.removeListener("agentRemove",onCloseOrRemove)}})};TunnelingAgent.prototype.createSocket=function createSocket(e,t){var r=this;var a={};r.sockets.push(a);var i=mergeOptions({},r.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:false,headers:{host:e.host+":"+e.port}});if(e.localAddress){i.localAddress=e.localAddress}if(i.proxyAuth){i.headers=i.headers||{};i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")}c("making CONNECT request");var n=r.request(i);n.useChunkedEncodingByDefault=false;n.once("response",onResponse);n.once("upgrade",onUpgrade);n.once("connect",onConnect);n.once("error",onError);n.end();function onResponse(e){e.upgrade=true}function onUpgrade(e,t,r){process.nextTick(function(){onConnect(e,t,r)})}function onConnect(i,p,o){n.removeAllListeners();p.removeAllListeners();if(i.statusCode!==200){c("tunneling socket could not be established, statusCode=%d",i.statusCode);p.destroy();var s=new Error("tunneling socket could not be established, "+"statusCode="+i.statusCode);s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(a);return}if(o.length>0){c("got illegal response body from proxy");p.destroy();var s=new Error("got illegal response body from proxy");s.code="ECONNRESET";e.request.emit("error",s);r.removeSocket(a);return}c("tunneling connection has established");r.sockets[r.sockets.indexOf(a)]=p;return t(p)}function onError(t){n.removeAllListeners();c("tunneling socket could not be established, cause=%s\n",t.message,t.stack);var i=new Error("tunneling socket could not be established, "+"cause="+t.message);i.code="ECONNRESET";e.request.emit("error",i);r.removeSocket(a)}};TunnelingAgent.prototype.removeSocket=function removeSocket(e){var t=this.sockets.indexOf(e);if(t===-1){return}this.sockets.splice(t,1);var r=this.requests.shift();if(r){this.createSocket(r,function(e){r.request.onSocket(e)})}};function createSecureSocket(e,t){var r=this;TunnelingAgent.prototype.createSocket.call(r,e,function(a){var n=e.request.getHeader("host");var p=mergeOptions({},r.options,{socket:a,servername:n?n.replace(/:.*$/,""):e.host});var o=i.connect(0,p);r.sockets[r.sockets.indexOf(a)]=o;t(o)})}function toOptions(e,t,r){if(typeof e==="string"){return{host:e,port:t,localAddress:r}}return e}function mergeOptions(e){for(var t=1,r=arguments.length;t<r;++t){var a=arguments[t];if(typeof a==="object"){var i=Object.keys(a);for(var n=0,p=i.length;n<p;++n){var o=i[n];if(a[o]!==undefined){e[o]=a[o]}}}}return e}var c;if(process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)){c=function(){var e=Array.prototype.slice.call(arguments);if(typeof e[0]==="string"){e[0]="TUNNEL: "+e[0]}else{e.unshift("TUNNEL:")}console.error.apply(console,e)}}else{c=function(){}}t.debug=c},143:function(e,t,r){e.exports=withAuthorizationPrefix;const a=r(368);const i=/^[\w-]+:/;function withAuthorizationPrefix(e){if(/^(basic|bearer|token) /i.test(e)){return e}try{if(i.test(a(e))){returnbasic ${e}}}catch(e){}if(e.split(/./).length===3){returnbearer ${e}}returntoken ${e}}},145:function(e,t,r){"use strict";const a=r(453);const i=r(966);class MaxBufferError extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}}function getStream(e,t){if(!e){return Promise.reject(new Error("Expected a stream"))}t=Object.assign({maxBuffer:Infinity},t);const{maxBuffer:r}=t;let n;return new Promise((p,o)=>{const s=e=>{if(e){e.bufferedData=n.getBufferedValue()}o(e)};n=a(e,i(t),e=>{if(e){s(e);return}p()});n.on("data",()=>{if(n.getBufferedLength()>r){s(new MaxBufferError)}})}).then(()=>n.getBufferedValue())}e.exports=getStream;e.exports.buffer=((e,t)=>getStream(e,Object.assign({},t,{encoding:"buffer"})));e.exports.array=((e,t)=>getStream(e,Object.assign({},t,{array:true})));e.exports.MaxBufferError=MaxBufferError},148:function(e,t,r){e.exports=paginatePlugin;const{paginateRest:a}=r(991);function paginatePlugin(e){Object.assign(e,a(e))}},163:function(e,t,r){"use strict";var a=this&&this.importDefault||function(e){return e&&e.esModule?e:{default:e}};Object.defineProperty(t,"esModule",{value:true});t.renderActions=t.getWorkflowRunStatus=t.formatAndNotify=t.submitNotification=t.getOctokitCommit=t.getRunInformation=t.escapeMarkdownTokens=void 0;const i=r(0);const n=r(470);const p=a(r(454));const o=a(r(482));const s=a(r(521));const d=r(504);const c=r(501);const u=r(606);const l=r(17);function escapeMarkdownTokens(e){return e.replace(/\n\ {1,}/g,"\n ").replace(/_/g,"\_").replace(/*/g,"\").replace(/|/g,"\|").replace(/#/g,"\#").replace(/-/g,"\-").replace(/>/g,"\>")}t.escapeMarkdownTokens=escapeMarkdownTokens;function getRunInformation(){const[e,t]=(process.env.GITHUB_REPOSITORY||"").split("/");return{owner:e,repo:t,ref:process.env.GITHUB_SHA||undefined,branchUrl:https://github.com/${process.env.GITHUB_REPOSITORY}/tree/${process.env.GITHUB_REF},runId:process.env.GITHUB_RUN_ID||undefined,runNum:process.env.GITHUB_RUN_NUMBER||undefined}}t.getRunInformation=getRunInformation;async function getOctokitCommit(){const e=getRunInformation();n.info("Workflow run information: "+JSON.stringify(e,undefined,2));const t=n.getInput("github-token",{required:true});const r=new i.Octokit({auth:token ${t}});return await r.repos.getCommit({owner:e.owner,repo:e.repo,ref:e.ref||""})}t.getOctokitCommit=getOctokitCommit;function submitNotification(e){const t=n.getInput("webhook-uri",{required:true});const r=JSON.stringify(e,undefined,2);return p.default(t,{method:"POST",headers:{"Content-Type":"application/json"},body:r}).then(e=>{n.setOutput("webhook-body",r);n.info(r);return e}).catch(console.error)}t.submitNotification=submitNotification;async function formatAndNotify(e,t="in_progress",r){console.log("inside formatAndNotify");let a;const i=await getOctokitCommit();const p=n.getInput(card-layout-${e});if(p==="compact"){a=c.formatCompactLayout(i,t,r)}else if(p==="cozy"){a=u.formatCozyLayout(i,t,r)}else{a=l.formatCompleteLayout(i,t,r)}submitNotification(a)}t.formatAndNotify=formatAndNotify;async function getWorkflowRunStatus(){const e=getRunInformation();const t=n.getInput("github-token",{required:true});const r=new i.Octokit({auth:token ${t}});n.info("run info: "+JSON.stringify(e,undefined,2));const a=n.getInput("job-name",{required:false});n.info(" current job name == "+a);const p=n.getInput("parent-job",{required:false});n.info(" parent job name == "+p);try{const t=await r.actions.listJobsForWorkflowRun({owner:e.owner,repo:e.repo,run_id:parseInt(e.runId||"1")});n.info("Workflow jobs: "+JSON.stringify(t,undefined,2));n.info("current env vars == "+JSON.stringify(process.env,undefined,2));const i=a==""?process.env.GITHUB_JOB:a;const s=p==""?i:p+" / "+i;const d=t.data.jobs.find(e=>e.name===s);console.log("printing job");console.log(d);let c;const u=d===null||d===void 0?void 0:d.steps.find(e=>e.conclusion==="failure"||e.conclusion==="timed_out"||e.conclusion==="cancelled"||e.conclusion==="action_required");if(u){c=u}else{c=d===null||d===void 0?void 0:d.steps.reverse().find(e=>e.status==="completed")}const l=o.default(d===null||d===void 0?void 0:d.started_at,o.default.ISO_8601);const m=o.default(c===null||c===void 0?void 0:c.completed_at,o.default.ISO_8601);return{elapsedSeconds:m.diff(l,"seconds"),conclusion:c===null||c===void 0?void 0:c.conclusion}}catch(e){console.log(e.message)}return{elapsedSeconds:0,conclusion:"unknown"}}t.getWorkflowRunStatus=getWorkflowRunStatus;function renderActions(e,t){const r=[];if(n.getInput("enable-view-status-action").toLowerCase()==="true"){r.push(new d.PotentialAction(n.getInput("view-status-action-text"),[e]))}if(n.getInput("enable-review-diffs-action").toLowerCase()==="true"){r.push(new d.PotentialAction(n.getInput("review-diffs-action-text"),[t]))}const a=n.getInput("custom-actions");if(a&&a.toLowerCase()!=="null"){try{let e=0;const t=s.default.parse(a);if(Array.isArray(t)){t.forEach(t=>{if(t.text!==undefined&&t.url!==undefined&&t.url.match(/https?:\/\/\S+/g)){r.push(new d.PotentialAction(t.text,[t.url]));e++}})}n.info(Added ${e} custom facts.)}catch(e){n.warning("Invalid custom-actions value.")}}return r}t.renderActions=renderActions},168:function(e){"use strict";const t=["stdin","stdout","stderr"];const r=e=>t.some(t=>Boolean(e[t]));e.exports=(e=>{if(!e){return null}if(e.stdio&&r(e)){throw new Error(It's not possible to provide \stdio` in combination with one of ${t.map(e=>\${e}`).join(", ")})}if(typeof e.stdio==="string"){return e.stdio}const a=e.stdio||[];if(!Array.isArray(a)){throw new TypeError(Expected \stdio` to be of type `string` or `Array`, got `${typeof a}`)}const i=[];const n=Math.max(a.length,t.length);for(let r=0;r<n;r++){let n=null;if(a[r]!==undefined){n=a[r]}else if(e[t[r]]!==undefined){n=e[t[r]]}i[r]=n}return i})},176:function(e,t,r){"use strict";t.URL=r(880).interface;t.serializeURL=r(856).serializeURL;t.serializeURLOrigin=r(856).serializeURLOrigin;t.basicURLParse=r(856).basicURLParse;t.setTheUsername=r(856).setTheUsername;t.setThePassword=r(856).setThePassword;t.serializeHost=r(856).serializeHost;t.serializeInteger=r(856).serializeInteger;t.parseURL=r(856).parseURL},177:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkBypass=t.getProxyUrl=void 0;function getProxyUrl(e){const t=e.protocol==="https:";if(checkBypass(e)){return undefined}const r=(()=>{if(t){return process.env["https_proxy"]||process.env["HTTPS_PROXY"]}else{return process.env["http_proxy"]||process.env["HTTP_PROXY"]}})();if(r){return new URL(r)}else{return undefined}}t.getProxyUrl=getProxyUrl;function checkBypass(e){if(!e.hostname){return false}const t=process.env["no_proxy"]||process.env["NO_PROXY"]||"";if(!t){return false}let r;if(e.port){r=Number(e.port)}else if(e.protocol==="http:"){r=80}else if(e.protocol==="https:"){r=443}const a=[e.hostname.toUpperCase()];if(typeof r==="number"){a.push(${a[0]}:${r}`)}for(const e of t.split(",").map(e=>e.trim().toUpperCase()).filter(e=>e)){if(a.some(t=>t===e)){return true}}return false}t.checkBypass=checkBypass},190:function(e,t,r){e.exports=authenticationPlugin;const{createTokenAuth:a}=r(68);const{Deprecation:i}=r(692);const n=r(49);const p=r(863);const o=r(293);const s=r(954);const d=r(143);const c=n((e,t)=>e.warn(t));const u=n((e,t)=>e.warn(t));function authenticationPlugin(e,t){if(t.authStrategy){const r=t.authStrategy(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}if(!t.auth){e.auth=(()=>Promise.resolve({type:"unauthenticated"}));return}const r=typeof t.auth==="string"&&/^basic/.test(d(t.auth));if(typeof t.auth==="string"&&!r){const r=a(t.auth);e.hook.wrap("request",r.hook);e.auth=r;return}const[n,l]=r?[c,'Setting the "new Octokit({ auth })" option to a Basic Auth string is deprecated. Use https://github.com/octokit/auth-basic.js instead. See (https://octokit.github.io/rest.js/#authentication)']:[u,'Setting the "new Octokit({ auth })" option to an object without also setting the "authStrategy" option is deprecated and will be removed in v17. See (https://octokit.github.io/rest.js/#authentication)'];n(e.log,new i("[@octokit/rest] "+l));e.auth=(()=>Promise.resolve({type:"deprecated",message:l}));s(t.auth);const m={octokit:e,auth:t.auth};e.hook.before("request",p.bind(null,m));e.hook.error("request",o.bind(null,m))}},192:function(e,t,r){"use strict";var a=r(513);var i=r(310);var n=r(525);const p={anchorPrefix:"a",customTags:null,indent:2,indentSeq:true,keepCstNodes:false,keepNodeTypes:true,keepBlobsInJSON:true,mapAsMap:false,maxAliasCount:100,prettyErrors:false,simpleKeys:false,version:"1.2"};const o={get binary(){return i.binaryOptions},set binary(e){Object.assign(i.binaryOptions,e)},get bool(){return i.boolOptions},set bool(e){Object.assign(i.boolOptions,e)},get int(){return i.intOptions},set int(e){Object.assign(i.intOptions,e)},get null(){return i.nullOptions},set null(e){Object.assign(i.nullOptions,e)},get str(){return i.strOptions},set str(e){Object.assign(i.strOptions,e)}};const s={"1.0":{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:a.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:true,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:a.defaultTagPrefix}]},1.2:{schema:"core",merge:false,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:a.defaultTagPrefix}]}};function stringifyTag(e,t){if((e.version||e.options.version)==="1.0"){const e=t.match(/^tag:private.yaml.org,2002:([^:/]+)$/);if(e)return"!"+e[1];const r=t.match(/^tag:([a-zA-Z0-9-]+).yaml.org,2002:(.)/);return r?!${r[1]}/${r[2]}:!${t.replace(/^tag:/,"")}}let r=e.tagPrefixes.find(e=>t.indexOf(e.prefix)===0);if(!r){const a=e.getDefaults().tagPrefixes;r=a&&a.find(e=>t.indexOf(e.prefix)===0)}if(!r)return t[0]==="!"?t:!<${t}>;const a=t.substr(r.prefix.length).replace(/[!,[]{}]/g,e=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[e]);return r.handle+a}function getTagObject(e,t){if(t instanceof i.Alias)return i.Alias;if(t.tag){const r=e.filter(e=>e.tag===t.tag);if(r.length>0)return r.find(e=>e.format===t.format)||r[0]}let r,a;if(t instanceof i.Scalar){a=t.value;const i=e.filter(e=>e.identify&&e.identify(a)||e.class&&a instanceof e.class);r=i.find(e=>e.format===t.format)||i.find(e=>!e.format)}else{a=t;r=e.find(e=>e.nodeClass&&a instanceof e.nodeClass)}if(!r){const e=a&&a.constructor?a.constructor.name:typeof a;throw new Error(Tag not resolved for ${e} value)}return r}function stringifyProps(e,t,{anchors:r,doc:a}){const i=[];const n=a.anchors.getName(e);if(n){r[n]=e;i.push(&${n})}if(e.tag){i.push(stringifyTag(a,e.tag))}else if(!t.default){i.push(stringifyTag(a,t.tag))}return i.join(" ")}function stringify(e,t,r,a){const{anchors:n,schema:p}=t.doc;let o;if(!(e instanceof i.Node)){const t={aliasNodes:[],onTagObj:e=>o=e,prevObjects:new Map};e=p.createNode(e,true,null,t);for(const e of t.aliasNodes){e.source=e.source.node;let t=n.getName(e.source);if(!t){t=n.newName();n.map[t]=e.source}}}if(e instanceof i.Pair)return e.toString(t,r,a);if(!o)o=getTagObject(p.tags,e);const s=stringifyProps(e,o,t);if(s.length>0)t.indentAtStart=(t.indentAtStart||0)+s.length+1;const d=typeof o.stringify==="function"?o.stringify(e,t,r,a):e instanceof i.Scalar?i.stringifyString(e,t,r,a):e.toString(t,r,a);if(!s)return d;return e instanceof i.Scalar||d[0]==="{"||d[0]==="["?${s} ${d}:${s}\n${t.indent}${d}}class Anchors{static validAnchorNode(e){return e instanceof i.Scalar||e instanceof i.YAMLSeq||e instanceof i.YAMLMap}constructor(e){a._defineProperty(this,"map",{});this.prefix=e}createAlias(e,t){this.setAnchor(e,t);return new i.Alias(e)}createMergePair(...e){const t=new i.Merge;t.value.items=e.map(e=>{if(e instanceof i.Alias){if(e.source instanceof i.YAMLMap)return e}else if(e instanceof i.YAMLMap){return this.createAlias(e)}throw new Error("Merge sources must be Map nodes or their Aliases")});return t}getName(e){const{map:t}=this;return Object.keys(t).find(r=>t[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){if(!e)e=this.prefix;const t=Object.keys(this.map);for(let r=1;true;++r){const a=${e}${r};if(!t.includes(a))return a}}resolveNodes(){const{map:e,_cstAliases:t}=this;Object.keys(e).forEach(t=>{e[t]=e[t].resolved});t.forEach(e=>{e.source=e.source.resolved});delete this._cstAliases}setAnchor(e,t){if(e!=null&&!Anchors.validAnchorNode(e)){throw new Error("Anchors may only be set for Scalar, Seq and Map nodes")}if(t&&/[\x00-\x19\s,[]{}]/.test(t)){throw new Error("Anchor names must not contain whitespace or control characters")}const{map:r}=this;const a=e&&Object.keys(r).find(t=>r[t]===e);if(a){if(!t){return a}else if(a!==t){delete r[a];r[t]=e}}else{if(!t){if(!e)return null;t=this.newName()}r[t]=e}return t}}const d=(e,t)=>{if(e&&typeof e==="object"){const{tag:r}=e;if(e instanceof i.Collection){if(r)t[r]=true;e.items.forEach(e=>d(e,t))}else if(e instanceof i.Pair){d(e.key,t);d(e.value,t)}else if(e instanceof i.Scalar){if(r)t[r]=true}}return t};const c=e=>Object.keys(d(e,{}));function parseContents(e,t){const r={before:[],after:[]};let n=undefined;let p=false;for(const o of t){if(o.valueRange){if(n!==undefined){const t="Document contains trailing content not separated by a ... or --- line";e.errors.push(new a.YAMLSyntaxError(o,t));break}const t=i.resolveNode(e,o);if(p){t.spaceBefore=true;p=false}n=t}else if(o.comment!==null){const e=n===undefined?r.before:r.after;e.push(o.comment)}else if(o.type===a.Type.BLANK_LINE){p=true;if(n===undefined&&r.before.length>0&&!e.commentBefore){e.commentBefore=r.before.join("\n");r.before=[]}}}e.contents=n||null;if(!n){e.comment=r.before.concat(r.after).join("\n")||null}else{const t=r.before.join("\n");if(t){const e=n instanceof i.Collection&&n.items[0]?n.items[0]:n;e.commentBefore=e.commentBefore?${t}\n${e.commentBefore}:t}e.comment=r.after.join("\n")||null}}function resolveTagDirective({tagPrefixes:e},t){const[r,i]=t.parameters;if(!r||!i){const e="Insufficient parameters given for %TAG directive";throw new a.YAMLSemanticError(t,e)}if(e.some(e=>e.handle===r)){const e="The %TAG directive must only be given at most once per handle in the same document.";throw new a.YAMLSemanticError(t,e)}return{handle:r,prefix:i}}function resolveYamlDirective(e,t){let[r]=t.parameters;if(t.name==="YAML:1.0")r="1.0";if(!r){const e="Insufficient parameters given for %YAML directive";throw new a.YAMLSemanticError(t,e)}if(!s[r]){const i=e.version||e.options.version;const n=Document will be parsed as YAML ${i} rather than YAML ${r};e.warnings.push(new a.YAMLWarning(t,n))}return r}function parseDirectives(e,t,r){const i=[];let n=false;for(const r of t){const{comment:t,name:p}=r;switch(p){case"TAG":try{e.tagPrefixes.push(resolveTagDirective(e,r))}catch(t){e.errors.push(t)}n=true;break;case"YAML":case"YAML:1.0":if(e.version){const t="The %YAML directive must only be given at most once per document.";e.errors.push(new a.YAMLSemanticError(r,t))}try{e.version=resolveYamlDirective(e,r)}catch(t){e.errors.push(t)}n=true;break;default:if(p){const t=YAML only supports %TAG and %YAML directives, and not %${p};e.warnings.push(new a.YAMLWarning(r,t))}}if(t)i.push(t)}if(r&&!n&&"1.1"===(e.version||r.version||e.options.version)){const t=({handle:e,prefix:t})=>({handle:e,prefix:t});e.tagPrefixes=r.tagPrefixes.map(t);e.version=r.version}e.commentBefore=i.join("\n")||null}function assertCollection(e){if(e instanceof i.Collection)return true;throw new Error("Expected a YAML collection as document contents")}class Document{constructor(e){this.anchors=new Anchors(e.anchorPrefix);this.commentBefore=null;this.comment=null;this.contents=null;this.directivesEndMarker=null;this.errors=[];this.options=e;this.schema=null;this.tagPrefixes=[];this.version=null;this.warnings=[]}add(e){assertCollection(this.contents);return this.contents.add(e)}addIn(e,t){assertCollection(this.contents);this.contents.addIn(e,t)}delete(e){assertCollection(this.contents);return this.contents.delete(e)}deleteIn(e){if(i.isEmptyPath(e)){if(this.contents==null)return false;this.contents=null;return true}assertCollection(this.contents);return this.contents.deleteIn(e)}getDefaults(){return Document.defaults[this.version]||Document.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof i.Collection?this.contents.get(e,t):undefined}getIn(e,t){if(i.isEmptyPath(e))return!t&&this.contents instanceof i.Scalar?this.contents.value:this.contents;return this.contents instanceof i.Collection?this.contents.getIn(e,t):undefined}has(e){return this.contents instanceof i.Collection?this.contents.has(e):false}hasIn(e){if(i.isEmptyPath(e))return this.contents!==undefined;return this.contents instanceof i.Collection?this.contents.hasIn(e):false}set(e,t){assertCollection(this.contents);this.contents.set(e,t)}setIn(e,t){if(i.isEmptyPath(e))this.contents=t;else{assertCollection(this.contents);this.contents.setIn(e,t)}}setSchema(e,t){if(!e&&!t&&this.schema)return;if(typeof e==="number")e=e.toFixed(1);if(e==="1.0"||e==="1.1"||e==="1.2"){if(this.version)this.version=e;else this.options.version=e;delete this.options.schema}else if(e&&typeof e==="string"){this.options.schema=e}if(Array.isArray(t))this.options.customTags=t;const r=Object.assign({},this.getDefaults(),this.options);this.schema=new n.Schema(r)}parse(e,t){if(this.options.keepCstNodes)this.cstNode=e;if(this.options.keepNodeTypes)this.type="DOCUMENT";const{directives:r=[],contents:i=[],directivesEndMarker:n,error:p,valueRange:o}=e;if(p){if(!p.source)p.source=this;this.errors.push(p)}parseDirectives(this,r,t);if(n)this.directivesEndMarker=true;this.range=o?[o.start,o.end]:null;this.setSchema();this.anchors._cstAliases=[];parseContents(this,i);this.anchors.resolveNodes();if(this.options.prettyErrors){for(const e of this.errors)if(e instanceof a.YAMLError)e.makePretty();for(const e of this.warnings)if(e instanceof a.YAMLError)e.makePretty()}return this}listNonDefaultTags(){return c(this.contents).filter(e=>e.indexOf(n.Schema.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){const r=this.tagPrefixes.find(t=>t.handle===e);if(r)r.prefix=t;else this.tagPrefixes.push({handle:e,prefix:t})}else{this.tagPrefixes=this.tagPrefixes.filter(t=>t.handle!==e)}}toJSON(e,t){const{keepBlobsInJSON:r,mapAsMap:a,maxAliasCount:n}=this.options;const p=r&&(typeof e!=="string"||!(this.contents instanceof i.Scalar));const o={doc:this,indentStep:" ",keep:p,mapAsMap:p&&!!a,maxAliasCount:n,stringify:stringify};const s=Object.keys(this.anchors.map);if(s.length>0)o.anchors=new Map(s.map(e=>[this.anchors.map[e],{alias:[],aliasCount:0,count:1}]));const d=i.toJSON(this.contents,e,o);if(typeof t==="function"&&o.anchors)for(const{count:e,res:r}of o.anchors.values())t(r,e);return d}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");const e=this.options.indent;if(!Number.isInteger(e)||e<=0){const t=JSON.stringify(e);throw new Error("indent" option must be a positive integer, not ${t})}this.setSchema();const t=[];let r=false;if(this.version){let e="%YAML 1.2";if(this.schema.name==="yaml-1.1"){if(this.version==="1.0")e="%YAML:1.0";else if(this.version==="1.1")e="%YAML 1.1"}t.push(e);r=true}const a=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:e,prefix:i})=>{if(a.some(e=>e.indexOf(i)===0)){t.push(%TAG ${e} ${i});r=true}});if(r||this.directivesEndMarker)t.push("---");if(this.commentBefore){if(r||!this.directivesEndMarker)t.unshift("");t.unshift(this.commentBefore.replace(/^/gm,"#"))}const n={anchors:{},doc:this,indent:"",indentStep:" ".repeat(e),stringify:stringify};let p=false;let o=null;if(this.contents){if(this.contents instanceof i.Node){if(this.contents.spaceBefore&&(r||this.directivesEndMarker))t.push("");if(this.contents.commentBefore)t.push(this.contents.commentBefore.replace(/^/gm,"#"));n.forceBlockIndent=!!this.comment;o=this.contents.comment}const e=o?null:()=>p=true;const a=stringify(this.contents,n,()=>o=null,e);t.push(i.addComment(a,"",o))}else if(this.contents!==undefined){t.push(stringify(this.contents,n))}if(this.comment){if((!p||o)&&t[t.length-1]!=="")t.push("");t.push(this.comment.replace(/^/gm,"#"))}return t.join("\n")+"\n"}}a._defineProperty(Document,"defaults",s);t.Document=Document;t.defaultOptions=p;t.scalarOptions=o},197:function(e,t,r){"use strict";const a=r(856);t.implementation=class URLImpl{constructor(e){const t=e[0];const r=e[1];let i=null;if(r!==undefined){i=a.basicURLParse(r)

cberg-aot commented 8 months ago

To piggyback on @adarshraj30836, I am also running into this exact same issue when trying to trigger notifications on workflow_run.

image produces
image