commit 8a7813f54b259bccf0ae482c6b2e4f8e438a43e7 parent e0fe791024a7d837a60859924c3f9ce7a8c913ee Author: Amit Dutta <mail@amit.is-a.dev> Date: Sat, 27 Jun 2026 09:38:33 +0530 Modify GitHub Actions workflow for maintainer activity Updated the workflow to run daily and removed the README update job. Diffstat:
| M | .github/workflows/job.yml | | | 34 | +++------------------------------- |
1 file changed, 3 insertions(+), 31 deletions(-)
diff --git a/.github/workflows/job.yml b/.github/workflows/job.yml @@ -1,40 +1,13 @@ -name: Auto-Update README & Maintainer Activity +name: Auto-Update Maintainer Activity on: schedule: - - cron: '0 */1 * * *' - workflow_dispatch: + - cron: '0 0 * * *' # every day at midnight UTC + 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) - update-maintainers: runs-on: ubuntu-latest - needs: update-readme # runs after README job to avoid push conflicts permissions: contents: write @@ -59,7 +32,6 @@ jobs: run: | git config --global user.name "github-actions[bot]" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" - git pull --rebase # pick up the README commit from the first job git add maintainers.json git diff --quiet && git diff --staged --quiet || \ (git commit -m "chore: auto-update maintainer activity" && git push)