Here are some examples to work from if you'd like to automate your use of self-hosted runners. See the docs here.
URL: http://github.com/actions/runner/tree/main/scripts
ssorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-b55097560d244c08.css" />