EndBug/add-and-commit

Currently outputting a bunch of code when this fails...

ross-spencer opened this issue · 9 comments

Describe the bug
A clear and concise description of what the bug is. If a particular error is shown

Currently seeing this output in GH actions when giving this a try:

/home/runner/work/_actions/EndBug/add-and-commit/v9.1.1/lib/index.js:7
 */function isObject(e){return Object.prototype.toString.call(e)==="[object Object]"}function isPlainObject(e){var t,r;if(isObject(e)===false)return false;t=e.constructor;if(t===undefined)return true;r=t.prototype;if(isObject(r)===false)return false;if(r.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=isPlainObject},1554:e=>{"use strict";var t=e.exports=function(e){return e!==null&&typeof e==="object"&&typeof e.pipe==="function"};t.writable=function(e){return t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object"};t.readable=function(e){return t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object"};t.duplex=function(e){return t.writable(e)&&t.readable(e)};t.transform=function(e){return t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object"}},7[12](https://github.com/ross-spencer/tmp/actions/runs/4709006495/jobs/8351795465#step:4:13)6:(e,t,r)=>{var a=r(7147);var i;if(process.platform==="win32"||global.TESTING_WINDOWS){i=r(2001)}else{i=r(9728)}e.exports=isexe;isexe.sync=sync;function isexe(e,t,r){if(typeof t==="function"){r=t;t={}}if(!r){if(typeof Promise!=="function"){throw new TypeError("callback not provided")}return new Promise((function(r,a){isexe(e,t||{},(function(e,t){if(e){a(e)}else{r(t)}}))}))}i(e,t||{},(function(e,a){if(e){if(e.code==="EACCES"||t&&t.ignoreErrors){e=null;a=false}}r(e,a)}))}function sync(e,t){try{return i.sync(e,t||{})}catch(e){if(t&&t.ignoreErrors||e.code==="EACCES"){return false}else{throw e}}}},9728:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var a=r(7147);function isexe(e,t,r){a.stat(e,(function(e,a){r(e,e?false:checkStat(a,t))}))}function sync(e,t){return checkStat(a.statSync(e),t)}function checkStat(e,t){return e.isFile()&&checkMode(e,t)}function checkMode(e,t){var r=e.mode;var a=e.uid;var i=e.gid;var s=t.uid!==undefined?t.uid:process.getuid&&process.getuid();var p=t.gid!==undefined?t.gid:process.getgid&&process.getgid();var n=parseInt("100",8);var o=parseInt("010",8);var d=parseInt("001",8);var l=n|o;var u=r&d||r&o&&i===p||r&n&&a===s||r&l&&s===0;return u}},2001:(e,t,r)=>{e.exports=isexe;isexe.sync=sync;var a=r(7147);function checkPathExt(e,t){var r=t.pathExt!==undefined?t.pathExt:process.env.PATHEXT;if(!r){return true}r=r.split(";");if(r.indexOf("")!==-1){return true}for(var a=0;a<r.length;a++){var i=r[a].toLowerCase();if(i&&e.substr(-i.length).toLowerCase()===i){return true}}return false}function checkStat(e,t,r){if(!e.isSymbolicLink()&&!e.isFile()){return false}return checkPathExt(t,r)}function isexe(e,t,r){a.stat(e,(function(a,i){r(a,a?false:checkStat(i,e,t))}))}function sync(e,t){return checkStat(a.statSync(e),e,t)}},1917:(e,t,r)=>{"use strict";var a=r(1161);var i=r(8866);function renamed(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. "+"Use yaml."+t+" instead, which is now safe by default.")}}e.exports.Type=r(6073);e.exports.Schema=r(1082);e.exports.FAILSAFE_SCHEMA=r(8562);e.exports.JSON_SCHEMA=r(1035);e.exports.CORE_SCHEMA=r(2011);e.exports.DEFAULT_SCHEMA=r(8759);e.exports.load=a.load;e.exports.loadAll=a.loadAll;e.exports.dump=i.dump;e.exports.YAMLException=r(8179);e.exports.types={binary:r(7900),float:r(2705),map:r(6150),null:r(721),pairs:r(6860),set:r(9548),timestamp:r(9212),bool:r(4993),int:r(1615),merge:r(6104),omap:r(9046),seq:r(7283),str:r(3619)};e.exports.safeLoad=renamed("safeLoad","load");e.exports.safeLoadAll=renamed("safeLoadAll","loadAll");e.exports.safeDump=renamed("safeDump","dump")},6829:e=>{"use strict";function isNothing(e){return typeof e==="undefined"||e===null}function isObject(e){return typeof e==="object"&&e!==null}function toArray(e){if(Array.isArray(e))return e;else if(isNothing(e))return[];return[e]}function extend(e,t){var r,a,i,s;if(t){s=Object.keys(t);for(r=0,a=s.length;r<a;r+=1){i=s[r];e[i]=t[i]}}return e}function repeat(e,t){var r="",a;for(a=0;a<t;a+=1){r+=e}return r}function isNegativeZero(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}e.exports.isNothing=isNothing;e.exports.isObject=isObject;e.exports.toArray=toArray;e.exports.repeat=repeat;e.exports.isNegativeZero=isNegativeZero;e.exports.extend=extend},8866:(e,t,r)=>{"use strict";var a=r(6829);var i=r(8179);var s=r(8759);var p=Object.prototype.toString;var n=Object.prototype.hasOwnProperty;var o=65279;var d=9;var l=10;var u=13;var c=32;var m=33;var h=34;var v=35;var g=37;var w=38;var b=39;var y=42;var _=44;var T=45;var S=58;var k=61;var O=62;var C=63;var A=64;var P=91;var D=93;var R=96;var x=123;var N=124;var j=125;var G={};G[0]="\\0";G[7]="\\a";G[8]="\\b";G[9]="\\t";G[10]="\\n";G[11]="\\v";G[12]="\\f";G[13]="\\r";G[27]="\\e";G[34]='\\"';G[92]="\\\\";G[133]="\\N";G[160]="\\_";G[8232]="\\L";G[8233]="\\P";var I=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];var L=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function compileStyleMap(e,t){var r,a,i,s,p,o,d;if(t===null)return{};r={};a=Object.keys(t);for(i=0,s=a.length;i<s;i+=1){p=a[i];o=String(t[p]);if(p.slice(0,2)==="!!"){p="tag:yaml.org,2002:"+p.slice(2)}d=e.compiledTypeMap["fallback"][p];if(d&&n.call(d.styleAliases,o)){o=d.styleAliases[o]}r[p]=o}return r}function encodeHex(e){var t,r,s;t=e.toString(16).toUpperCase();if(e<=255){r="x";s=2}else if(e<=65535){r="u";s=4}else if(e<=4294967295){r="U";s=8}else{throw new i("code point within a string may not be greater than 0xFFFFFFFF")}return"\\"+r+a.repeat("0",s-t.length)+t}var V=1,U=2;function State(e){this.schema=e["schema"]||s;this.indent=Math.max(1,e["indent"]||2);this.noArrayIndent=e["noArrayIndent"]||false;this.skipInvalid=e["skipInvalid"]||false;this.flowLevel=a.isNothing(e["flowLevel"])?-1:e["flowLevel"];this.styleMap=compileStyleMap(this.schema,e["styles"]||null);this.sortKeys=e["sortKeys"]||false;this.lineWidth=e["lineWidth"]||80;this.noRefs=e["noRefs"]||false;this.noCompatMode=e["noCompatMode"]||false;this.condenseFlow=e["condenseFlow"]||false;this.quotingType=e["quotingType"]==='"'?U:V;this.forceQuotes=e["forceQuotes"]||false;this.replacer=typeof e["replacer"]==="function"?e["replacer"]:null;this.implicitTypes=this.schema.compiledImplicit;this.explicitTypes=this.schema.compiledExplicit;this.tag=null;this.result="";this.duplicates=[];this.usedDuplicates=null}function indentString(e,t){var r=a.repeat(" ",t),i=0,s=-1,p="",n,o=e.length;while(i<o){s=e.indexOf("\n",i);if(s===-1){n=e.slice(i);i=o}else{n=e.slice(i,s+1);i=s+1}if(n.length&&n!=="\n")p+=r;p+=n}return p}function generateNextLine(e,t){return"\n"+a.repeat(" ",e.indent*t)}function testImplicitResolving(e,t){var r,a,i;for(r=0,a=e.implicitTypes.length;r<a;r+=1){i=e.implicitTypes[r];if(i.resolve(t)){return true}}return false}function isWhitespace(e){return e===c||e===d}function isPrintable(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==o||65536<=e&&e<=1114111}function isNsCharOrWhitespace(e){return isPrintable(e)&&e!==o&&e!==u&&e!==l}function isPlainSafe(e,t,r){var a=isNsCharOrWhitespace(e);var i=a&&!isWhitespace(e);return(r?a:a&&e!==_&&e!==P&&e!==D&&e!==x&&e!==j)&&e!==v&&!(t===S&&!i)||isNsCharOrWhitespace(t)&&!isWhitespace(t)&&e===v||t===S&&i}function isPlainSafeFirst(e){return isPrintable(e)&&e!==o&&!isWhitespace(e)&&e!==T&&e!==C&&e!==S&&e!==_&&e!==P&&e!==D&&e!==x&&e!==j&&e!==v&&e!==w&&e!==y&&e!==m&&e!==N&&e!==k&&e!==O&&e!==b&&e!==h&&e!==g&&e!==A&&e!==R}function isPlainSafeLast(e){return!isWhitespace(e)&&e!==S}function codePointAt(e,t){var r=e.charCodeAt(t),a;if(r>=55296&&r<=56319&&t+1<e.length){a=e.charCodeAt(t+1);if(a>=56320&&a<=57343){return(r-55296)*1024+a-56320+65536}}return r}function needIndentIndicator(e){var t=/^\n* /;return t.test(e)}var M=1,B=2,q=3,$=4,H=5;function chooseScalarStyle(e,t,r,a,i,s,p,n){var o;var d=0;var u=null;var c=false;var m=false;var h=a!==-1;var v=-1;var g=isPlainSafeFirst(codePointAt(e,0))&&isPlainSafeLast(codePointAt(e,e.length-1));if(t||p){for(o=0;o<e.length;d>=65536?o+=2:o++){d=codePointAt(e,o);if(!isPrintable(d)){return H}g=g&&isPlainSafe(d,u,n);u=d}}else{for(o=0;o<e.length;d>=65536?o+=2:o++){d=codePointAt(e,o);if(d===l){c=true;if(h){m=m||o-v-1>a&&e[v+1]!==" ";v=o}}else if(!isPrintable(d)){return H}g=g&&isPlainSafe(d,u,n);u=d}m=m||h&&(o-v-1>a&&e[v+1]!==" ")}if(!c&&!m){if(g&&!p&&!i(e)){return M}return s===U?H:B}if(r>9&&needIndentIndicator(e)){return H}if(!p){return m?$:q}return s===U?H:B}function writeScalar(e,t,r,a,s){e.dump=function(){if(t.length===0){return e.quotingType===U?'""':"''"}if(!e.noCompatMode){if(I.indexOf(t)!==-1||L.test(t)){return e.quotingType===U?'"'+t+'"':"'"+t+"'"}}var p=e.indent*Math.max(1,r);var n=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-p);var o=a||e.flowLevel>-1&&r>=e.flowLevel;function testAmbiguity(t){return testImplicitResolving(e,t)}switch(chooseScalarStyle(t,o,e.indent,n,testAmbiguity,e.quotingType,e.forceQuotes&&!a,s)){case M:return t;case B:return"'"+t.replace(/'/g,"''")+"'";case q:return"|"+blockHeader(t,e.indent)+dropEndingNewline(indentString(t,p));case $:return">"+blockHeader(t,e.indent)+dropEndingNewline(indentString(foldString(t,n),p));case H:return'"'+escapeString(t,n)+'"';default:throw new i("impossible error: invalid scalar style")}}()}function blockHeader(e,t){var r=needIndentIndicator(e)?String(t):"";var a=e[e.length-1]==="\n";var i=a&&(e[e.length-2]==="\n"||e==="\n");var s=i?"+":a?"":"-";return r+s+"\n"}function dropEndingNewline(e){return e[e.length-1]==="\n"?e.slice(0,-1):e}function foldString(e,t){var r=/(\n+)([^\n]*)/g;var a=function(){var a=e.indexOf("\n");a=a!==-1?a:e.length;r.lastIndex=a;return foldLine(e.slice(0,a),t)}();var i=e[0]==="\n"||e[0]===" ";var s;var p;while(p=r.exec(e)){var n=p[1],o=p[2];s=o[0]===" ";a+=n+(!i&&!s&&o!==""?"\n":"")+foldLine(o,t);i=s}return a}function foldLine(e,t){if(e===""||e[0]===" ")return e;var r=/ [^ ]/g;var a;var i=0,s,p=0,n=0;var o="";while(a=r.exec(e)){n=a.index;if(n-i>t){s=p>i?p:n;o+="\n"+e.slice(i,s);i=s+1}p=n}o+="\n";if(e.length-i>t&&p>i){o+=e.slice(i,p)+"\n"+e.slice(p+1)}else{o+=e.slice(i)}return o.slice(1)}function escapeString(e){var t="";var r=0;var a;for(var i=0;i<e.length;r>=65536?i+=2:i++){r=codePointAt(e,i);a=G[r];if(!a&&isPrintable(r)){t+=e[i];if(r>=65536)t+=e[i+1]}else{t+=a||encodeHex(r)}}return t}function writeFlowSequence(e,t,r){var a="",i=e.tag,s,p,n;for(s=0,p=r.length;s<p;s+=1){n=r[s];if(e.replacer){n=e.replacer.call(r,String(s),n)}if(writeNode(e,t,n,false,false)||typeof n==="undefined"&&writeNode(e,t,null,false,false)){if(a!=="")a+=","+(!e.condenseFlow?" ":"");a+=e.dump}}e.tag=i;e.dump="["+a+"]"}function writeBlockSequence(e,t,r,a){var i="",s=e.tag,p,n,o;for(p=0,n=r.length;p<n;p+=1){o=r[p];if(e.replacer){o=e.replacer.call(r,String(p),o)}if(writeNode(e,t+1,o,true,true,false,true)||typeof o==="undefined"&&writeNode(e,t+1,null,true,true,false,true)){if(!a||i!==""){i+=generateNextLine(e,t)}if(e.dump&&l===e.dump.charCodeAt(0)){i+="-"}else{i+="- "}i+=e.dump}}e.tag=s;e.dump=i||"[]"}function writeFlowMapping(e,t,r){var a="",i=e.tag,s=Object.keys(r),p,n,o,d,l;for(p=0,n=s.length;p<n;p+=1){l="";if(a!=="")l+=", ";if(e.condenseFlow)l+='"';o=s[p];d=r[o];if(e.replacer){d=e.replacer.call(r,o,d)}if(!writeNode(e,t,o,false,false)){continue}if(e.dump.length>1024)l+="? ";l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" ");if(!writeNode(e,t,d,false,false)){continue}l+=e.dump;a+=l}e.tag=i;e.dump="{"+a+"}"}function writeBlockMapping(e,t,r,a){var s="",p=e.tag,n=Object.keys(r),o,d,u,c,m,h;if(e.sortKeys===true){n.sort()}else if(typeof e.sortKeys==="function"){n.sort(e.sortKeys)}else if(e.sortKeys){throw new i("sortKeys must be a boolean or a function")}for(o=0,d=n.length;o<d;o+=1){h="";if(!a||s!==""){h+=generateNextLine(e,t)}u=n[o];c=r[u];if(e.replacer){c=e.replacer.call(r,u,c)}if(!writeNode(e,t+1,u,true,true,true)){continue}m=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024;if(m){if(e.dump&&l===e.dump.charCodeAt(0)){h+="?"}else{h+="? "}}h+=e.dump;if(m){h+=generateNextLine(e,t)}if(!writeNode(e,t+1,c,true,m)){continue}if(e.dump&&l===e.dump.charCodeAt(0)){h+=":"}else{h+=": "}h+=e.dump;s+=h}e.tag=p;e.dump=s||"{}"}function detectType(e,t,r){var a,s,o,d,l,u;s=r?e.explicitTypes:e.implicitTypes;for(o=0,d=s.length;o<d;o+=1){l=s[o];if((l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t==="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(r){if(l.multi&&l.representName){e.tag=l.representName(t)}else{e.tag=l.tag}}else{e.tag="?"}if(l.represent){u=e.styleMap[l.tag]||l.defaultStyle;if(p.call(l.represent)==="[object Function]"){a=l.represent(t,u)}else if(n.call(l.represent,u)){a=l.represent[u](t,u)}else{throw new i("!<"+l.tag+'> tag resolver accepts not "'+u+'" style')}e.dump=a}return true}}return false}function writeNode(e,t,r,a,s,n,o){e.tag=null;e.dump=r;if(!detectType(e,r,false)){detectType(e,r,true)}var d=p.call(e.dump);var l=a;var u;if(a){a=e.flowLevel<0||e.flowLevel>t}var c=d==="[object Object]"||d==="[object Array]",m,h;if(c){m=e.duplicates.indexOf(r);h=m!==-1}if(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0){s=false}if(h&&e.usedDuplicates[m]){e.dump="*ref_"+m}else{if(c&&h&&!e.usedDuplicates[m]){e.usedDuplicates[m]=true}if(d==="[object Object]"){if(a&&Object.keys(e.dump).length!==0){writeBlockMapping(e,t,e.dump,s);if(h){e.dump="&ref_"+m+e.dump}}else{writeFlowMapping(e,t,e.dump);if(h){e.dump="&ref_"+m+" "+e.dump}}}else if(d==="[object Array]"){if(a&&e.dump.length!==0){if(e.noArrayIndent&&!o&&t>0){writeBlockSequence(e,t-1,e.dump,s)}else{writeBlockSequence(e,t,e.dump,s)}if(h){e.dump="&ref_"+m+e.dump}}else{writeFlowSequence(e,t,e.dump);if(h){e.dump="&ref_"+m+" "+e.dump}}}else if(d==="[object String]"){if(e.tag!=="?"){writeScalar(e,e.dump,t,n,l)}}else if(d==="[object Undefined]"){return false}else{if(e.skipInvalid)return false;throw new i("unacceptable kind of an object to dump "+d)}if(e.tag!==null&&e.tag!=="?"){u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21");if(e.tag[0]==="!"){u="!"+u}else if(u.slice(0,18)==="tag:yaml.org,2002:"){u="!!"+u.slice(18)}else{u="!<"+u+">"}e.dump=u+" "+e.dump}}return true}function getDuplicateReferences(e,t){var r=[],a=[],i,s;inspectNode(e,r,a);for(i=0,s=a.length;i<s;i+=1){t.duplicates.push(r[a[i]])}t.usedDuplicates=new Array(s)}function inspectNode(e,t,r){var a,i,s;if(e!==null&&typeof e==="object"){i=t.indexOf(e);if(i!==-1){if(r.indexOf(i)===-1){r.push(i)}}else{t.push(e);if(Array.isArray(e)){for(i=0,s=e.length;i<s;i+=1){inspectNode(e[i],t,r)}}else{a=Object.keys(e);for(i=0,s=a.length;i<s;i+=1){inspectNode(e[a[i]],t,r)}}}}}function dump(e,t){t=t||{};var r=new State(t);if(!r.noRefs)getDuplicateReferences(e,r);var a=e;if(r.replacer){a=r.replacer.call({"":a},"",a)}if(writeNode(r,0,a,true,true))return r.dump+"\n";return""}e.exports.dump=dump},8179:e=>{"use strict";function formatError(e,t){var r="",a=e.reason||"(unknown reason)";if(!e.mark)return a;if(e.mark.name){r+='in "'+e.mark.name+'" '}r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")";if(!t&&e.mark.snippet){r+="\n\n"+e.mark.snippet}return a+" "+r}function YAMLException(e,t){Error.call(this);this.name="YAMLException";this.reason=e;this.mark=t;this.message=formatError(this,false);if(Error.captureStackTrace){Error.captureStackTrace(this,this.constructor)}else{this.stack=(new Error).stack||""}}YAMLException.prototype=Object.create(Error.prototype);YAMLException.prototype.constructor=YAMLException;YAMLException.prototype.toString=function toString(e){return this.name+": "+formatError(this,e)};e.exports=YAMLException},1161:(e,t,r)=>{"use strict";var a=r(6829);var i=r(8179);var s=r(6975);var p=r(8759);var n=Object.prototype.hasOwnProperty;var o=1;var d=2;var l=3;var u=4;var c=1;var m=2;var h=3;var v=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;var g=/[\x85\u2028\u2029]/;var w=/[,\[\]\{\}]/;var b=/^(?:!|!!|![a-z\-]+!)$/i;var y=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function _class(e){return Object.prototype.toString.call(e)}function is_EOL(e){return e===10||e===13}function is_WHITE_SPACE(e){return e===9||e===32}function is_WS_OR_EOL(e){return e===9||e===32||e===10||e===13}function is_FLOW_INDICATOR(e){return e===44||e===91||e===93||e===123||e===125}function fromHexCode(e){var t;if(48<=e&&e<=57){return e-48}t=e|32;if(97<=t&&t<=102){return t-97+10}return-1}function escapedHexLen(e){if(e===120){return 2}if(e===117){return 4}if(e===85){return 8}return 0}function fromDecimalCode(e){if(48<=e&&e<=57){return e-48}return-1}function simpleEscapeSequence(e){return e===48?"\0":e===97?"�":e===98?"\b":e===116?"\t":e===9?"\t":e===110?"\n":e===118?"\v":e===102?"\f":e===114?"\r":e===101?"�":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"�":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function charFromCodepoint(e){if(e<=65535){return String.fromCharCode(e)}return String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var _=new Array(256);var T=new Array(256);for(var S=0;S<256;S++){_[S]=simpleEscapeSequence(S)?1:0;T[S]=simpleEscapeSequence(S)}function State(e,t){this.input=e;this.filename=t["filename"]||null;this.schema=t["schema"]||p;this.onWarning=t["onWarning"]||null;this.legacy=t["legacy"]||false;this.json=t["json"]||false;this.listener=t["listener"]||null;this.implicitTypes=this.schema.compiledImplicit;this.typeMap=this.schema.compiledTypeMap;this.length=e.length;this.position=0;this.line=0;this.lineStart=0;this.lineIndent=0;this.firstTabInLine=-1;this.documents=[]}function generateError(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};r.snippet=s(r);return new i(t,r)}function throwError(e,t){throw generateError(e,t)}function throwWarning(e,t){if(e.onWarning){e.onWarning.call(null,generateError(e,t))}}var k={YAML:function handleYamlDirective(e,t,r){var a,i,s;if(e.version!==null){throwError(e,"duplication of %YAML directive")}if(r.length!==1){throwError(e,"YAML directive accepts exactly one argument")}a=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);if(a===null){throwError(e,"ill-formed argument of the YAML directive")}i=parseInt(a[1],10);s=parseInt(a[2],10);if(i!==1){throwError(e,"unacceptable YAML version of the document")}e.version=r[0];e.checkLineBreaks=s<2;if(s!==1&&s!==2){throwWarning(e,"unsupported YAML version of the document")}},TAG:function handleTagDirective(e,t,r){var a,i;if(r.length!==2){throwError(e,"TAG directive accepts exactly two arguments")}a=r[0];i=r[1];if(!b.test(a)){throwError(e,"ill-formed tag handle (first argument) of the TAG directive")}if(n.call(e.tagMap,a)){throwError(e,'there is a previously declared suffix for "'+a+'" tag handle')}if(!y.test(i)){throwError(e,"ill-formed tag prefix (second argument) of the TAG directive")}try{i=decodeURIComponent(i)}catch(t){throwError(e,"tag prefix is malformed: "+i)}e.tagMap[a]=i}};function captureSegment(e,t,r,a){var i,s,p,n;if(t<r){n=e.input.slice(t,r);if(a){for(i=0,s=n.length;i<s;i+=1){p=n.charCodeAt(i);if(!(p===9||32<=p&&p<=1114111)){throwError(e,"expected valid JSON character")}}}else if(v.test(n)){throwError(e,"the stream contains non-printable characters")}e.result+=n}}function mergeMappings(e,t,r,i){var s,p,o,d;if(!a.isObject(r)){throwError(e,"cannot merge mappings; the provided source object is unacceptable")}s=Object.keys(r);for(o=0,d=s.length;o<d;o+=1){p=s[o];if(!n.call(t,p)){t[p]=r[p];i[p]=true}}}function storeMappingPair(e,t,r,a,i,s,p,o,d){var l,u;if(Array.isArray(i)){i=Array.prototype.slice.call(i);for(l=0,u=i.length;l<u;l+=1){if(Array.isArray(i[l])){throwError(e,"nested arrays are not supported inside keys")}if(typeof i==="object"&&_class(i[l])==="[object Object]"){i[l]="[object Object]"}}}if(typeof i==="object"&&_class(i)==="[object Object]"){i="[object Object]"}i=String(i);if(t===null){t={}}if(a==="tag:yaml.org,2002:merge"){if(Array.isArray(s)){for(l=0,u=s.length;l<u;l+=1){mergeMappings(e,t,s[l],r)}}else{mergeMappings(e,t,s,r)}}else{if(!e.json&&!n.call(r,i)&&n.call(t,i)){e.line=p||e.line;e.lineStart=o||e.lineStart;e.position=d||e.position;throwError(e,"duplicated mapping key")}if(i==="__proto__"){Object.defineProperty(t,i,{configurable:true,enumerable:true,writable:true,value:s})}else{t[i]=s}delete r[i]}return t}function readLineBreak(e){var t;t=e.input.charCodeAt(e.position);if(t===10){e.position++}else if(t===13){e.position++;if(e.input.charCodeAt(e.position)===10){e.position++}}else{throwError(e,"a line break is expected")}e.line+=1;e.lineStart=e.position;e.firstTabInLine=-1}function skipSeparationSpace(e,t,r){var a=0,i=e.input.charCodeAt(e.position);while(i!==0){while(is_WHITE_SPACE(i)){if(i===9&&e.firstTabInLine===-1){e.firstTabInLine=e.position}i=e.input.charCodeAt(++e.position)}if(t&&i===35){do{i=e.input.charCodeAt(++e.position)}while(i!==10&&i!==13&&i!==0)}if(is_EOL(i)){readLineBreak(e);i=e.input.charCodeAt(e.position);a++;e.lineIndent=0;while(i===32){e.lineIndent++;i=e.input.charCodeAt(++e.position)}}else{break}}if(r!==-1&&a!==0&&e.lineIndent<r){throwWarning(e,"deficient indentation")}return a}function testDocumentSeparator(e){var t=e.position,r;r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){t+=3;r=e.input.charCodeAt(t);if(r===0||is_WS_OR_EOL(r)){return true}}return false}function writeFoldedLines(e,t){if(t===1){e.result+=" "}else if(t>1){e.result+=a.repeat("\n",t-1)}}function readPlainScalar(e,t,r){var a,i,s,p,n,o,d,l,u=e.kind,c=e.result,m;m=e.input.charCodeAt(e.position);if(is_WS_OR_EOL(m)||is_FLOW_INDICATOR(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96){return false}if(m===63||m===45){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){return false}}e.kind="scalar";e.result="";s=p=e.position;n=false;while(m!==0){if(m===58){i=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(i)||r&&is_FLOW_INDICATOR(i)){break}}else if(m===35){a=e.input.charCodeAt(e.position-1);if(is_WS_OR_EOL(a)){break}}else if(e.position===e.lineStart&&testDocumentSeparator(e)||r&&is_FLOW_INDICATOR(m)){break}else if(is_EOL(m)){o=e.line;d=e.lineStart;l=e.lineIndent;skipSeparationSpace(e,false,-1);if(e.lineIndent>=t){n=true;m=e.input.charCodeAt(e.position);continue}else{e.position=p;e.line=o;e.lineStart=d;e.lineIndent=l;break}}if(n){captureSegment(e,s,p,false);writeFoldedLines(e,e.line-o);s=p=e.position;n=false}if(!is_WHITE_SPACE(m)){p=e.position+1}m=e.input.charCodeAt(++e.position)}captureSegment(e,s,p,false);if(e.result){return true}e.kind=u;e.result=c;return false}function readSingleQuotedScalar(e,t){var r,a,i;r=e.input.charCodeAt(e.position);if(r!==39){return false}e.kind="scalar";e.result="";e.position++;a=i=e.position;while((r=e.input.charCodeAt(e.position))!==0){if(r===39){captureSegment(e,a,e.position,true);r=e.input.charCodeAt(++e.position);if(r===39){a=e.position;e.position++;i=e.position}else{return true}}else if(is_EOL(r)){captureSegment(e,a,i,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));a=i=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a single quoted scalar")}else{e.position++;i=e.position}}throwError(e,"unexpected end of the stream within a single quoted scalar")}function readDoubleQuotedScalar(e,t){var r,a,i,s,p,n;n=e.input.charCodeAt(e.position);if(n!==34){return false}e.kind="scalar";e.result="";e.position++;r=a=e.position;while((n=e.input.charCodeAt(e.position))!==0){if(n===34){captureSegment(e,r,e.position,true);e.position++;return true}else if(n===92){captureSegment(e,r,e.position,true);n=e.input.charCodeAt(++e.position);if(is_EOL(n)){skipSeparationSpace(e,false,t)}else if(n<256&&_[n]){e.result+=T[n];e.position++}else if((p=escapedHexLen(n))>0){i=p;s=0;for(;i>0;i--){n=e.input.charCodeAt(++e.position);if((p=fromHexCode(n))>=0){s=(s<<4)+p}else{throwError(e,"expected hexadecimal character")}}e.result+=charFromCodepoint(s);e.position++}else{throwError(e,"unknown escape sequence")}r=a=e.position}else if(is_EOL(n)){captureSegment(e,r,a,true);writeFoldedLines(e,skipSeparationSpace(e,false,t));r=a=e.position}else if(e.position===e.lineStart&&testDocumentSeparator(e)){throwError(e,"unexpected end of the document within a double quoted scalar")}else{e.position++;a=e.position}}throwError(e,"unexpected end of the stream within a double quoted scalar")}function readFlowCollection(e,t){var r=true,a,i,s,p=e.tag,n,d=e.anchor,l,u,c,m,h,v=Object.create(null),g,w,b,y;y=e.input.charCodeAt(e.position);if(y===91){u=93;h=false;n=[]}else if(y===123){u=125;h=true;n={}}else{return false}if(e.anchor!==null){e.anchorMap[e.anchor]=n}y=e.input.charCodeAt(++e.position);while(y!==0){skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if(y===u){e.position++;e.tag=p;e.anchor=d;e.kind=h?"mapping":"sequence";e.result=n;return true}else if(!r){throwError(e,"missed comma between flow collection entries")}else if(y===44){throwError(e,"expected the node content, but found ','")}w=g=b=null;c=m=false;if(y===63){l=e.input.charCodeAt(e.position+1);if(is_WS_OR_EOL(l)){c=m=true;e.position++;skipSeparationSpace(e,true,t)}}a=e.line;i=e.lineStart;s=e.position;composeNode(e,t,o,false,true);w=e.tag;g=e.result;skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if((m||e.line===a)&&y===58){c=true;y=e.input.charCodeAt(++e.position);skipSeparationSpace(e,true,t);composeNode(e,t,o,false,true);b=e.result}if(h){storeMappingPair(e,n,v,w,g,b,a,i,s)}else if(c){n.push(storeMappingPair(e,null,v,w,g,b,a,i,s))}else{n.push(g)}skipSeparationSpace(e,true,t);y=e.input.charCodeAt(e.position);if(y===44){r=true;y=e.input.charCodeAt(++e.position)}else{r=false}}throwError(e,"unexpected end of the stream within a flow collection")}function readBlockScalar(e,t){var r,i,s=c,p=false,n=false,o=t,d=0,l=false,u,v;v=e.input.charCodeAt(e.position);if(v===124){i=false}else if(v===62){i=true}else{return false}e.kind="scalar";e.result="";while(v!==0){v=e.input.charCodeAt(++e.position);if(v===43||v===45){if(c===s){s=v===43?h:m}else{throwError(e,"repeat of a chomping mode identifier")}}else if((u=fromDecimalCode(v))>=0){if(u===0){throwError(e,"bad explicit indentation width of a block scalar; it cannot be less than one")}else if(!n){o=t+u-1;n=true}else{throwError(e,"repeat of an indentation width identifier")}}else{break}}if(is_WHITE_SPACE(v)){do{v=e.input.charCodeAt(++e.position)}while(is_WHITE_SPACE(v));if(v===35){do{v=e.input.charCodeAt(++e.position)}while(!is_EOL(v)&&v!==0)}}while(v!==0){readLineBreak(e);e.lineIndent=0;v=e.input.charCodeAt(e.position);wh

NB. Truncated...

Workflow used
Provide a snippet of the workflow and/or a link to it (use the commit sha as the ref when you link it, so that it's not influenced by other changes). If you only share a section of the workflow, make sure it includes the step that uses the action!

Run EndBug/add-and-commit@v9.1.1
  with:
    default_author: github_actions
    cwd: $GITHUB_WORKSPACE
    message: Dynamically creating a file and updating a commit
    pathspec_error_handling: ignore
    add: newfile.txt
    fetch: --tags --force
    push: true
    github_token: ***

Expected behavior
A clear and concise description of what you expected to happen.

I'm not sure at this point. Some sort of initialization and then a clear message if that fails.

Logs
Either provide a link to the action run or (if your repo is private) paste here the logs from the step that uses it. If you paste the logs, please use this template, and remember to paste the logs from all the different sections.

As above.

Hi, can you post a link to the action run that shows that error?

Thanks for reporting that, I'll try to look into it as soon as I have some time ;)

@ross-spencer did you ever end up resolving? We have a similar issue going on in our workflow, wondering if you were able to debug at all.

@andrewwylde not that I recall, I think I just used a different approach, I'd need to go back and look at the workflow.

Did this ever end up resolved? I just get a bunch of javascript code when I try to use it.

@Luiggi33 we went with a manual approach to resolving this (just using git). Code here.

It worked for our workflow, but may not for others.

Hope that helps!

Thanks for the reply, we ended up using some other action that suited our needs

I know this is an old issue, but for anyone it may help: The issue seems to be occurring when you include the the cwd input & point it to an absolute path.

For example, the following code will fail with the exception as the error:

    - name: Pushing Calver File
      uses: EndBug/add-and-commit@v9
      with:
        cwd: "${{ github.workspace }}/my-checkout-path"
        add: "version.txt"
        pathspec_error_handling: exitImmediately
        author_name: "github-actions[bot]"
        author_email: "41898282+github-actions[bot]@users.noreply.github.com"
        committer_name: "github-actions[bot]"
        committer_email: "41898282+github-actions[bot]@users.noreply.github.com"
        message: "Workflow run [#'${{ github.run_number }}']: Bumping calver"
        pull: '--ff'

However, if I modify the cwd: "./my-checkout-path" to not use an absolute path, the step completes successfully.