Remove debug printing

This commit is contained in:
Andreas Svanberg 2024-10-31 14:19:28 +01:00
parent be62417d93
commit 92ee966340

@ -18,19 +18,6 @@ async function main() {
core.setOutput('url', `https://${repositoryName}-${mangledBranchName}.branch.dsv.su.se`);
const issueNumber = gitea.context.issue.number;
core.info(`Issue number: ${issueNumber}`);
core.info(`context.apiUrl: ${gitea.context.apiUrl}`);
core.info('dumping process.env');
Object.keys(process.env).forEach(key => {
let value = process.env[key];
if (key.includes('TOKEN') || key.includes('SECRET') || key.includes('KEY')) {
value = '***';
}
core.info(`process.env[${key}]=${value}`);
});
const api = client.default<specification.paths>({
baseUrl: gitea.context.apiUrl,
headers: {
@ -56,9 +43,6 @@ async function main() {
core.info(`sshKey: ${sshKey.length}`);
fs.writeFileSync('ssh_key', `${sshKey}\n`, {flag: 'w+', mode: "0600"});
const pipedCommand = `pwd | ls -l`;
await exec.exec('sh', ['-c', `${pipedCommand}`]);
const deployCommand = `\
echo "${serverUrl}/${owner}/${repositoryName}.git ${branchName} ${mangledBranchName} ${composeFile}" | \
ssh -i ssh_key -o StrictHostKeyChecking=accept-new branch.dsv.su.se`;