We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1715983 commit 99f2415Copy full SHA for 99f2415
2 files changed
sr-data/src/sr_data/steps/workflows.py
@@ -117,7 +117,7 @@ def workflow_info(content):
117
def used_for_releases(yml) -> bool:
118
result = False
119
on = yml[True]
120
- if on and not isinstance(on, str):
+ if on and not isinstance(on, str) and not isinstance(on, list):
121
if on.get("release"):
122
for type in on.get("release").get("types"):
123
if type == "published":
sr-data/src/tests/test_workflows.py
@@ -176,7 +176,7 @@ def test_returns_false_when_no_release(self):
176
)
177
178
@pytest.mark.fast
179
- def test_returns_false_when_on_list(self):
+ def test_returns_false_on_simple_list(self):
180
self.assertFalse(
181
used_for_releases(
182
yaml.safe_load(
0 commit comments