Generate a list of contributors #21
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
schedule: | |
# 每天UTC时间0点运行(北京时间8点) | |
- cron: '0 0 * * *' | |
workflow_dispatch: # 允许手动触发 | |
name: Generate a list of contributors | |
jobs: | |
contrib-readme-job: | |
runs-on: ubuntu-latest | |
name: Update contributors in README and docs | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update README contributors | |
uses: akhilmhdh/[email protected] | |
with: | |
readme_path: 'README.md' | |
use_username: true | |
max_columns: 6 | |
image_size: 100 | |
commit_message: 'docs: update README contributors' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Update docs contributors | |
uses: akhilmhdh/[email protected] | |
with: | |
readme_path: 'docs/contributors.md' | |
use_username: true | |
max_columns: 6 | |
image_size: 100 | |
commit_message: 'docs: update contributors page' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |