Remove unused function

This commit is contained in:
Ayaz Salikhov
2021-07-16 17:56:27 +03:00
parent 7ee6bdb3c4
commit 71a5e3ff16

View File

@@ -16,8 +16,6 @@ in a GitHub CI environment.
import json
import os
from contextlib import contextmanager
def _gwc(command_name, command_value="", **params):
if not os.environ.get("GITHUB_ACTIONS"):
@@ -35,18 +33,6 @@ def _gwc(command_name, command_value="", **params):
print(f"::{command_name}::{command_value}")
@contextmanager
def _gwc_group(group_name):
"""
Entering the context prints the group command, and exiting the context
prints the endgroup command.<<
"""
try:
yield _gwc("group", group_name)
finally:
_gwc("endgroup", group_name)
def _gwc_set_env(env_name, env_value):
if not os.environ.get("GITHUB_ACTIONS") or not os.environ.get("GITHUB_ENV"):
return