rogisolorzano/Stops a self-hosted EC2 runner

Stops a self-hosted EC2 runner

View on GitHub

Trust Signals

Scorecard Score
Scorecard 2–4scored Jul 6, 2026
Maintenance Recency
Stalelast commit Feb 18, 2023
License
MIT
Runtime
Deprecated runtime

Pinned Snippet

workflow.ymlSHA-pinned
uses: rogisolorzano/github-runner-ec2-stop@c7296980c7a33d1ac7a6f968887a66b35c6627ba # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
github-tokenGitHub Personal Access Token with the 'repo' scope.yes
runner-labelThe label of the Github runner to remove.yes
instance-idThe instance ID of the EC2 instance to terminate.yes
cleanup-tag-nameOptionally cleanup any instances with a tag name and value. This is useful to cleanup any dangling instances that might have failed to be terminated in previous workflow runs for some reason. With the github-runner-ec2-start action, you can specify a tag name and value that you can use when cleaning up here. Tag value is required if tag name is provided.no
cleanup-tag-valueOptionally cleanup any instances with a tag name and value. Tag name is required if tag value is provided.no
cleanup-older-than-hoursOptionally cleanup instances that have been running for longer than x hours. Tag name and value are required if this is provided. This defaults to 1 hour.no
regionThe AWS region. Defaults to us-east-1.no

no outputs