Skip to content

Commit

Permalink
Fix: don't inform on Discord / IRC about skipped workflows (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain authored Mar 31, 2024
1 parent 2e30b51 commit 197b83c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/GitHub/protocols/discord.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def ref_tag_created(hook_urls, repository_name, url, user, avatar_url, nam

@protocols.register("discord", "workflow-run")
async def workflow_run(hook_urls, repository_name, url, user, avatar_url, workflow_name, conclusion, author, path):
if conclusion == "success":
if conclusion in ("success", "skipped"):
return

message = f"**{repository_name}** - "
Expand Down
2 changes: 1 addition & 1 deletion plugins/GitHub/protocols/irc.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ async def ref_tag_created(channels, repository_name, url, user, avatar_url, name

@protocols.register("irc", "workflow-run")
async def workflow_run(channels, repository_name, url, user, avatar_url, workflow_name, conclusion, author, path):
if conclusion == "success":
if conclusion in ("success", "skipped"):
return

message = f"{workflow_name} workflow was not successful"
Expand Down

0 comments on commit 197b83c

Please sign in to comment.