/** * This file is the entry point for the `post:` hook of `start-proxy-action.yml`. * It will run after the all steps in this job, in reverse order in relation to * other `post:` hooks. */ import * as core from "@actions/core"; import { wrapError } from "./util"; async function runWrapper() { try { const pid = core.getState("proxy-process-pid"); if (pid) { process.kill(Number(pid)); } } catch (error) { core.setFailed( `start-proxy post-action step failed: ${wrapError(error).message}`, ); } } void runWrapper();