From 4c80f707d2c3fab3b3e2262b7b8396c7848de8a1 Mon Sep 17 00:00:00 2001 From: SufeyifanWu Date: Sun, 15 Sep 2024 11:46:23 -0400 Subject: [PATCH] update readme --- .github/workflows/contributors.yml | 36 ++++++++++++++++++++++++------ README.md | 5 +++++ 2 files changed, 34 insertions(+), 7 deletions(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index e5bc234..0ac69ab 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -1,18 +1,40 @@ name: Update Contributors on: + schedule: + - cron: '0 0 * * 1' # Runs every Monday at 00:00 UTC push: - branches: - - main + paths: + - 'README.md' jobs: update-contributors: runs-on: ubuntu-latest + steps: - - name: Checkout repository - uses: actions/checkout@v2 + - name: Checkout Repository + uses: actions/checkout@v3 - - name: Update contributors - uses: jakepartusch/all-contributors-action@v3 + - name: Set Up Node.js + uses: actions/setup-node@v3 with: - repo-token: ${{ secrets.GITHUB_TOKEN }} + node-version: '16' + + - name: Install All Contributors CLI + run: npm install -g all-contributors-cli + + - name: Add Contributors + run: all-contributors add $(git log --format='%aN <%aE>' | sort -u | awk '{print $1}' | sed 's///') + + - name: Generate Contributors Section + run: all-contributors generate + + - name: Commit and Push Changes + run: | + git config --local user.name "GitHub Action" + git config --local user.email "action@github.com" + git add README.md + git commit -m "chore: update contributors list" || echo "No changes to commit" + git push + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 3382251..a284b5d 100644 --- a/README.md +++ b/README.md @@ -92,4 +92,9 @@ We are grateful for the following awesome projects - [xlm-roberta_punctuation_fullstop_truecase](https://huggingface.co/1-800-BAD-CODE/xlm-roberta_punctuation_fullstop_truecase): An xlm-roberta model fine-tuned to restore punctuation + +## Contributors +Thanks to all the contributors who have helped to make this project better! + + \ No newline at end of file