diff --git a/.github/workflows/PanditBOT.yml b/.github/workflows/PanditBOT.yml index 733d0f9..dc0614b 100644 --- a/.github/workflows/PanditBOT.yml +++ b/.github/workflows/PanditBOT.yml @@ -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 ptprashanttripathi@outlook.com 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 diff --git a/json/repos.json b/json/repos.json index c0d96cf..b5bcb33 100644 --- a/json/repos.json +++ b/json/repos.json @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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", @@ -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" } ] \ No newline at end of file diff --git a/main.py b/main.py index 1485460..ff8b721 100644 --- a/main.py +++ b/main.py @@ -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)