mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-08-14 06:51:52 +02:00
The runner is an application, not a library. `act/model` and `act/exprparser` were the last packages anything outside this repository consumed and they now live in actionslib, so nothing needs the rest of `act` to be importable, and keeping it importable invites the coupling that was just removed. Import paths only, the files are unchanged. Assisted-by: Codet:GPT-5.1-Codex
10 lines
417 B
JavaScript
10 lines
417 B
JavaScript
import {execFileSync} from 'node:child_process';
|
|
|
|
// Run the `main` input as a bash script; its stdout (workflow commands like
|
|
// ::set-output / ::save-state) and $GITHUB_ENV / $GITHUB_STATE writes are
|
|
// processed by the runner, exactly like the remote script action this replaces.
|
|
const script = process.env.INPUT_MAIN;
|
|
if (script) {
|
|
execFileSync('bash', ['-eo', 'pipefail', '-c', script], {stdio: 'inherit'});
|
|
}
|