Skip to content

Commit 99f2415

Browse files
committed
feat(#264): simple list
1 parent 1715983 commit 99f2415

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

sr-data/src/sr_data/steps/workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def workflow_info(content):
117117
def used_for_releases(yml) -> bool:
118118
result = False
119119
on = yml[True]
120-
if on and not isinstance(on, str):
120+
if on and not isinstance(on, str) and not isinstance(on, list):
121121
if on.get("release"):
122122
for type in on.get("release").get("types"):
123123
if type == "published":

sr-data/src/tests/test_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ def test_returns_false_when_no_release(self):
176176
)
177177

178178
@pytest.mark.fast
179-
def test_returns_false_when_on_list(self):
179+
def test_returns_false_on_simple_list(self):
180180
self.assertFalse(
181181
used_for_releases(
182182
yaml.safe_load(

0 commit comments

Comments
 (0)