From 95ab1b7c99993eee2756959708d3c3ee3b916e6c Mon Sep 17 00:00:00 2001 From: figeral Date: Mon, 1 Apr 2024 20:25:03 +0100 Subject: [PATCH] modifications done on actions --- .github/workflows/source/index.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/source/index.py b/.github/workflows/source/index.py index 1d601c6..b742de2 100644 --- a/.github/workflows/source/index.py +++ b/.github/workflows/source/index.py @@ -1,5 +1,6 @@ import requests import os +import time def send_mgs(): @@ -7,12 +8,12 @@ def send_mgs(): user_id = os.environ['USER_ID'] repository = os.environ['GITHUB_REPOSITORY'] author = os.environ['GITHUB_EVENT_AUTHOR'] - + date = time.ctime() baseUrl = "https://api.telegram.org" url = f"{baseUrl}/bot{token}/sendMessage" link = f"github.com/{repository}" - msg = f"A Pushed 🚀 made by {author} \n feel free to edit it at {link}" + msg = f"A Pushed 🚀 made by {author}✨ made on {date} \n \n feel free to edit it at {link}" payload = dict(chat_id=user_id, text=msg) requests.post(url=url, params=payload)