(()=>{vare={898(e,r,t){"use strict";vars=t(81).spawn,o=t(837),n=function(e){return"string"==typeofe?e.replace(/\b\s/g,"\\ "):e};e.exports=function(e,r){e=e||{};vart="win32"===((e=(p=e=o._extend({},e),["src","dest","include","exclude","excludeFirst"].forEach(function(e){varr=p[e];"string"==typeofr?p[e]=n(r):!0===Array.isArray(r)&&(p[e]=r.map(n))}),p)).platform||process.platform);if(void0===e.src)throwError("'src' directory is missing from options");if(void0===e.dest)throwError("'dest' directory is missing from options");vari=e.dest;void0!==e.host&&(i=e.host+":"+e.dest),Array.isArray(e.src)||(e.src=[e.src]);varc=[].concat(e.src);c.push(i);vara=(e.args||[]).find(function(e){returne.match(/--chmod=/)});if(t&&!a&&c.push("--chmod=ugo=rwX"),void0!==e.host||e.ssh){c.push("--rsh");vard="ssh";void0!==e.port&&(d+=" -p "+e.port),void0!==e.privateKey&&(d+=" -i "+e.privateKey),void0!==e.sshCmdArgs&&(d+=" "+e.sshCmdArgs.join(" ")),c.push(d)}switch(!0===e.recursive&&c.push("--recursive"),!0===e.times&&c.push("--times"),(!0===e.syncDest||!0===e.deleteAll)&&(c.push("--delete"),c.push("--delete-excluded")),(!0===e.syncDestIgnoreExcl||!0===e.delete)&&c.push("--delete"),!0===e.dryRun&&(c.push("--dry-run"),c.push("--verbose")),void0!==e.excludeFirst&&o.isArray(e.excludeFirst)&&e.excludeFirst.forEach(function(e,r){c.push("--exclude="+e)}),void0!==e.include&&o.isArray(e.include)&&e.include.forEach(function(e,r){c.push("--include="+e)}),void0!==e.exclude&&o.isArray(e.exclude)&&e.exclude.forEach(function(e,r){c.push("--exclude="+e)}),e.compareMode){case"sizeOnly":c.push("--size-only");break;case"checksum":c.push("--checksum")}void0!==e.args&&o.isArray(e.args)&&(c=[...newSet([...c,...e.args])]),c=[...newSet(c)];varl=function(){},u=e.onStdout||l,h=e.onStderr||l,g="rsync ";if(c.forEach(function(e){"ssh "===e.substr(0,4)&&(e='"'+e+'"'),g+=e+" "}),g=g.trim(),e.noExec){r(null,null,null,g);return}try{varp,y,m="",f="";(y=t?s("cmd.exe",["/s","/c",'"'+g+'"'],{windowsVerbatimArguments:!0,stdio:[process.stdin,"pipe","pipe"]}):s("/bin/sh",["-c",g])).stdout.on("data",function(e){u(e),m+=e}),y.stderr.on("data",function(e){h(e),f+=e}),y.on("exit",function(e){vart=null;0!==e&&((t=Error("rsync exited with code "+e)).code=e),r(t,m,f,g)})}catch(v){r(v,null,null,g)}}},505(e,r,t){let{existsSync:s,mkdirSync:o,writeFileSync:n}=t(147),{join:i}=t(17),c=e=>{if(!e){console.warn("⚠️ [DIR] dir is not defined");return}if(s(e)){console.log(`✅ [DIR] ${e} dir exist`);return}console.log(`[DIR] Creating ${e} dir in workspace root`),o(e),console.log("✅ [DIR] dir created.")},a=(e,r)=>{if(r)throwError(e);console.warn(e)},d=({dir:e,filename:r,content:t,isRequired:o,mode:d="0644"})=>{c(e);letl=i(e,r);if(s(l)){letu=`⚠️ [FILE] ${l} Required file exist.`;a(u,o);return}try{console.log(`[FILE] writing ${l} file ...`,t.length),n(l,t,{encoding:"utf8",mode:d})}catch(h){letg=`⚠️[FILE] Writing to file error. filePath: ${l}, message: ${h.message}`;a(g,o)}},l=e=>{letr=Object.keys(e),t=r.filter(r=>{lett=e[r];returnt||console.error(`❌ [INPUTS] ${r} is mandatory`),t});if(t.length!==r.length)throwError("⚠️ [INPUTS] Inputs not valid, aborting ...")},u=e=>e.replace(/[^a-zA-Z0-9]+(.)/g,(e,r)=>r.toUpperCase());e.exports={writeToFile:d,validateRequiredInputs:l,snakeToCamel:u}},229(e,r,t){let{snakeToCamel:s}=t(505),o=process.env.GITHUB_WORKSPACE,n=process.env.REMOTE_USER||process.env.INPUT_REMOTE_USER,i={source:"",target:`/home/${n}/`,exclude:"",include:"",args:"-rlgoDzvc -i",sshCmdArgs:"-o StrictHostKeyChecking=no",deployKeyName:`deploy_key_${n}_${Date.now()}`},c={githubWorkspace:o};["REMOTE_HOST","REMOTE_USER","REMOTE_PORT","SSH_PRIVATE_KEY","DEPLOY_KEY_NAME","SOURCE","TARGET","ARGS","SSH_CMD_ARGS","INCLUDE","EXCLUDE","SCRIPT_BEFORE","SCRIPT_AFTER"].forEach(e=>{letr=s(e.toLowerCase()),t=process.env[e]||process.env[`INPUT_${e}`]||i[r],n=void0===t?i[r]:t,a=n;switch(r){case"source":a=n.split(" ").map(e=>`${o}/${e}`);break;case"args":a=n.split(" ");break;case"include":case"exclude":case"sshCmdArgs":a=n.split(",").map(e=>e.trim())}c[r]=a}),c.sshServ