Skip to content

Commit

Permalink
feat(#261): not str
Browse files Browse the repository at this point in the history
  • Loading branch information
h1alexbel committed Dec 2, 2024
1 parent 0379125 commit 4cfee52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sr-data/src/sr_data/steps/workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def workflow_info(content):
def used_for_releases(yml) -> bool:
result = False
on = yml[True]
if on:
if on and not isinstance(on, str):
if on.get("release"):
for type in on.get("release").get("types"):
if type == "published":
Expand Down
1 change: 1 addition & 0 deletions sr-data/src/tests/resources/to-workflows.csv
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ dcodesdev/rustfinity.com,main,"ci.yaml,rustfinity-runner.yaml"
gordnzhou/imnes-emulator,main,
lanylow/honkai-dumper,main,
BillyDM/vitalium-verb,main,"build.yml"
polespinasa/bitcoin-grouphug,main,"ci.yml"

0 comments on commit 4cfee52

Please sign in to comment.