Remove excessive debug logging

This commit is contained in:
Andreas Svanberg 2024-10-30 12:09:46 +01:00
parent 90c2393557
commit 97cee79bb9

@ -21,15 +21,6 @@ async function main() {
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: {
@ -58,8 +49,6 @@ async function main() {
const pipedCommand = `pwd | ls -l`;
await exec.exec('sh', ['-c', `${pipedCommand}`]);
await exec.exec('cat', ['ssh_key']);
const deployCommand = `\
echo "${serverUrl}/${owner}/${repositoryName}.git ${branchName} ${mangledBranchName}" | \
ssh -i ssh_key -o StrictHostKeyChecking=accept-new branch.dsv.su.se`;