17 lines
395 B
Python
Executable File
17 lines
395 B
Python
Executable File
#!/usr/bin/env python3
|
|
|
|
# Runs periodically in it's own workflow in the CI/CD environment to teardown
|
|
# runners that are offline
|
|
|
|
from github_common import deregister_offline_runners
|
|
|
|
# Reuse manager utilities
|
|
from ci_variables import ci_env
|
|
|
|
def main():
|
|
# deregister all offline runners
|
|
deregister_offline_runners(ci_env['PERSONAL_ACCESS_TOKEN'])
|
|
|
|
if __name__ == "__main__":
|
|
main()
|