commit ce7c0b8a6ae8d3fb70d4dfccc6cf1cfecb9ad645 parent 9bfd16aac55f0d74eaee3d6be3715a2f9ac16f4b Author: Amit Dutta <mail@amit.is-a.dev> Date: Sat, 27 Jun 2026 09:37:45 +0530 Add workflow to auto-update README with recent commits Diffstat:
| A | .github/workflows/update_readme.yml | | | 33 | +++++++++++++++++++++++++++++++++ |
1 file changed, 33 insertions(+), 0 deletions(-)
diff --git a/.github/workflows/update_readme.yml b/.github/workflows/update_readme.yml @@ -0,0 +1,33 @@ +name: Auto-Update Recent Commits + +on: + schedule: + - cron: '0 */1 * * *' # every hour + workflow_dispatch: + +jobs: + update-readme: + runs-on: ubuntu-latest + permissions: + contents: write + + 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 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: python .github/scripts/update_commits.py + + - name: Commit and Push Changes + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" + git add README.md + git diff --quiet && git diff --staged --quiet || (git commit -m "docs: auto-update recent commits" && git push)