Skip to content

Commit

Permalink
Better message
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 20, 2024
1 parent ffc9660 commit 972124a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tag_publish/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"""

import argparse
import json
import os
import os.path
import re
Expand Down Expand Up @@ -515,11 +514,13 @@ def _trigger_dispatch_events(
}

if repository:
print(f"Triggering {event_type} on {repository} with {json.dumps(published)}")
print(f"::group::Triggering {event_type} on {repository}")
github_repo = github.github.get_repo(repository)
else:
print(f"Triggering {event_type} with {json.dumps(published)}")
print(f"::group::Triggering {event_type}")
github_repo = github.repo
print(yaml.dump(published, Dumper=yaml.SafeDumper, default_flow_style=False))
print("::endgroup::")
github_repo.create_repository_dispatch(event_type, {"content": published})


Expand Down

0 comments on commit 972124a

Please sign in to comment.