diff --git a/.github/workflows/chatupdate.yml b/.github/workflows/chatupdate.yml index df307b6..e81e376 100644 --- a/.github/workflows/chatupdate.yml +++ b/.github/workflows/chatupdate.yml @@ -21,3 +21,4 @@ jobs: password: ${{ secrets.BOT_PASSWORD }} event: ${{ github.event_name }} actor: ${{ github.actor }} + payload: ${{ github.event }} diff --git a/sendmsg.py b/sendmsg.py index 1e31c41..b17516d 100644 --- a/sendmsg.py +++ b/sendmsg.py @@ -8,6 +8,7 @@ PASSWORD = os.environ["password"] EVENT_NAME = os.environ["event"] EVENT_USER = os.environ["actor"] +PAYLOAD = os.environ["payload"] cleaned = re.sub(r"\[.*\]", "", EVENT_USER) @@ -21,5 +22,5 @@ def indent(text): r.send( - f'Event "{EVENT_NAME}" was triggered by {f"[{cleaned}](https://github.com/{cleaned})"}.' + indent(f'Event "{EVENT_NAME}" was triggered by {f"[{cleaned}](https://github.com/{cleaned})"}.\nPayload:\n{PAYLOAD}') )