Add proper detection for github-actions service

This commit is contained in:
Ralph Lange
2020-06-15 16:42:37 +02:00
parent 0ba02c5b03
commit f324cd3bdd
2 changed files with 27 additions and 6 deletions

View File

@@ -31,6 +31,13 @@ if 'APPVEYOR' in os.environ:
elif re.match(r'^macOS', os.environ['APPVEYOR_BUILD_WORKER_IMAGE']):
ci_os = 'osx'
if 'GITHUB_ACTIONS' in os.environ:
ci_service = 'github-actions'
if os.environ['RUNNER_OS'] == 'macOS':
ci_os = 'osx'
else:
ci_os = os.environ['RUNNER_OS'].lower()
def find_in_file(regex, filename):
file = open(filename, "r")