summaryrefslogtreecommitdiff
path: root/scripts/utils.py
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-07-27 16:20:24 +0200
committerFlorian Bruhin <me@the-compiler.org>2020-07-27 16:20:24 +0200
commitf8190f368f9ebffd1f31667f632d86db92363c91 (patch)
tree1b2c5ea5231a43c67be21292e2b448b097789be1 /scripts/utils.py
parentb72f5e7a98c662a0357413b05f391e05dda677d3 (diff)
downloadqutebrowser-f8190f368f9ebffd1f31667f632d86db92363c91.tar.gz
qutebrowser-f8190f368f9ebffd1f31667f632d86db92363c91.zip
recompile_requirements: Add GHA groups
Diffstat (limited to 'scripts/utils.py')
-rw-r--r--scripts/utils.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/utils.py b/scripts/utils.py
index ea216f9b2..f46e6a4de 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -100,12 +100,14 @@ def change_cwd():
def gha_group(name):
"""Print a GitHub Actions group.
- Should only be called on CI.
+ Gets ignored if not on CI.
"""
- assert ON_CI
- print('::group::' + name)
- yield
- print('::endgroup::')
+ if ON_CI:
+ print('::group::' + name)
+ yield
+ print('::endgroup::')
+ else:
+ yield
def gha_error(message):