diff --git a/.github/update-contributors.yml b/.github/update-contributors.yml new file mode 100644 index 0000000..4d017a3 --- /dev/null +++ b/.github/update-contributors.yml @@ -0,0 +1,28 @@ +name: Update Contributors List +on: + workflow_dispatch: + push: + branches: + - main + pull_request: + types: [closed] + +jobs: + update-contributors: + runs-on: ubuntu-latest + name: Update project contributors in README + permissions: + contents: write + pull-requests: write + steps: + - uses: actions/checkout@v2 + - name: Update Contributors List + uses: akhilmhdh/contributors-readme-action@v2.3.10 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + readme_path: 'README.md' + collaborators: 'all' + max_contributors: 10 + contributor_template: '#{name}' + commit_message: 'docs: update contributors list'