Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
SufeyifanWu committed Sep 15, 2024
1 parent 59ace0f commit 4c80f70
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/contributors.yml
Original file line number Diff line number Diff line change
@@ -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/<//;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 }}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 -->
## Contributors

Thanks to all the contributors who have helped to make this project better!

<!-- END CONTRIBUTORS -->

0 comments on commit 4c80f70

Please sign in to comment.