How GitHub Actions Handle Running Processes After Job Ends
When a GitHub Actions job ends, the runner stops any processes it started. It finds these by looking for a special variable called RUNNER_TRACKING_ID. On GitHub-hosted runners, this is managed by removing the whole virtual machine after the job finishes.