From bf3ee7354c18cc9166d712943037d4c81f2862a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20Kadir=20Ak=C4=B1n?= Date: Sat, 13 Dec 2025 18:22:39 +0300 Subject: [PATCH] chore(ci): add GitHub Actions workflow for updating contributors --- .github/workflows/update-contributors.yml | 39 +++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/update-contributors.yml diff --git a/.github/workflows/update-contributors.yml b/.github/workflows/update-contributors.yml new file mode 100644 index 00000000..f20730bb --- /dev/null +++ b/.github/workflows/update-contributors.yml @@ -0,0 +1,39 @@ +name: Update Contributors + +on: + schedule: + # Run every hour + - cron: '0 * * * *' + workflow_dispatch: # Allow manual trigger + +jobs: + update-contributors: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 0 # Full history needed for commit deduplication + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Configure Git + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + + - name: Run contributor generation script + env: + PROJECT_DIR: ${{ github.workspace }} + run: | + chmod +x scripts/generate-contributors.sh + ./scripts/generate-contributors.sh + + - name: Push changes + run: | + git push origin main --force-with-lease