notamitgamer

It's my profile man, there is ...
Log | Files | Refs | README

commit 5d4377cfa65c701a6da71102389b9f84420c70f1
parent 166f95dc8b032a01fb5bb717783a904734e80193
Author: Amit Dutta <amitdutta4255@gmail.com>
Date:   Mon,  4 May 2026 21:02:13 +0530

Add workflow to auto-update recent commits
Diffstat:
A.github/workflows/update-commits.yml | 33+++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/update-commits.yml b/.github/workflows/update-commits.yml @@ -0,0 +1,33 @@ +name: Auto-Update Recent Commits + +on: + schedule: + - cron: '0 */4 * * *' + workflow_dispatch: + +jobs: + update-readme: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Run Python Script to update README + 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)
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror