Skip to content

Commit

Permalink
Update main.py (#12)
Browse files Browse the repository at this point in the history
* Update main.py

* [PanditBot] Updating Repos Data

* Update PanditBOT.yml

* [PanditBot] Updating Repos Data 2022-11-02_19-38-01
  • Loading branch information
PtPrashantTripathi authored Nov 2, 2022
1 parent b7528e2 commit 535ab21
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 14 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/PanditBOT.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: 3.9.5 #install the python needed
- name: Library installation
run: |
python -m pip install -U pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Updating JSON
run: python main.py
- name: Git push
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
python main.py
git config user.name PtPrashantTripathi
git config user.email [email protected]
git add ./json/repos.json
git commit -m "[PanditBot] Updating Repos Data"
git commit -m "[PanditBot] Updating Repos Data $(date +%Y-%m-%d_%H-%M-%S)"
git push --quiet
27 changes: 18 additions & 9 deletions json/repos.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"lang": "JavaScript",
"date": "2022-04-11T12:06:09Z",
"stars": 64,
"forks": 9
"forks": 9,
"generatedOn": "2022-11-02 19:37:53.430689"
},
{
"name": "bhagavad-gita-api",
Expand All @@ -19,7 +20,8 @@
"lang": "JavaScript",
"date": "2020-11-19T09:58:47Z",
"stars": 77,
"forks": 12
"forks": 12,
"generatedOn": "2022-11-02 19:37:53.430689"
},
{
"name": "IPL-2020-Prediction",
Expand All @@ -30,7 +32,8 @@
"lang": "HTML",
"date": "2020-09-28T13:58:21Z",
"stars": 7,
"forks": 3
"forks": 3,
"generatedOn": "2022-11-02 19:37:53.430689"
},
{
"name": "linkpe",
Expand All @@ -41,7 +44,8 @@
"lang": "HTML",
"date": "2020-10-09T08:16:31Z",
"stars": 31,
"forks": 15
"forks": 15,
"generatedOn": "2022-11-02 19:37:53.430689"
},
{
"name": "movieinfo",
Expand All @@ -52,7 +56,8 @@
"lang": "HTML",
"date": "2020-10-06T10:02:13Z",
"stars": 7,
"forks": 2
"forks": 2,
"generatedOn": "2022-11-02 19:37:53.430689"
},
{
"name": "shreeganesh",
Expand All @@ -63,7 +68,8 @@
"lang": "Java",
"date": "2019-03-20T14:24:46Z",
"stars": 14,
"forks": 2
"forks": 2,
"generatedOn": "2022-11-02 19:37:53.430689"
},
{
"name": "cloud-storage-system",
Expand All @@ -74,7 +80,8 @@
"lang": "Java",
"date": "2019-04-08T19:14:55Z",
"stars": 9,
"forks": 1
"forks": 1,
"generatedOn": "2022-11-02 19:37:53.430689"
},
{
"name": "Adhyatma",
Expand All @@ -85,7 +92,8 @@
"lang": "PHP",
"date": "2019-03-12T18:04:10Z",
"stars": 9,
"forks": 1
"forks": 1,
"generatedOn": "2022-11-02 19:37:53.430689"
},
{
"name": "php-social-networking-site",
Expand All @@ -96,6 +104,7 @@
"lang": "PHP",
"date": "2019-02-23T17:05:29Z",
"stars": 8,
"forks": 0
"forks": 0,
"generatedOn": "2022-11-02 19:37:53.430689"
}
]
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from datetime import datetime

# datetime object containing current date and time
now = datetime.now()
now = str(datetime.now())

print("now =", now)

Expand Down

0 comments on commit 535ab21

Please sign in to comment.