For getting the current job, there is a reliable way. It checks runner.name (or runner.id) and job.status, as a runner can only have one active job.
Details see in:
https://github.com/qoomon/actions--context/blob/7172c6aca796226588b5557e9bf76e4d7124da36/lib/actions.ts#L253-L259