commit 851566fa4ddc86cec920fd103c15b4504bba3bd9
parent a05a0c567a6c86d6a245c9b870f104af051868ef
Author: Amit Dutta <amitdutta4255@gmail.com>
Date: Thu, 28 May 2026 08:04:43 +0530
Update update-commits.yml
Diffstat:
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/update-commits.yml b/.github/workflows/update-commits.yml
@@ -1,9 +1,8 @@
name: Auto-Update Recent Commits
-
on:
schedule:
- cron: '0 */4 * * *'
- workflow_dispatch:
+ workflow_dispatch:
jobs:
update-readme:
@@ -18,16 +17,13 @@ jobs:
python-version: '3.x'
- name: Run Python Script to update README
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python .github/scripts/update_commits.py
- name: Commit and Push Changes
run: |
- # Configure git with a bot identity
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
-
- # Add the README file
git add README.md
-
- # Only commit and push if there are actual changes made to the file
git diff --quiet && git diff --staged --quiet || (git commit -m "docs: auto-update recent commits" && git push)