.github/workflows/credits.yml

34 lines · 1190 bytes

 1# Inserts list of contributors and community members into ./docs/credits.md
 2name: 📊 Generate Contributor Credits
 3on:
 4  workflow_dispatch: # Manual dispatch
 5  schedule:
 6    - cron: '0 5 * * 6' # Every Saturday morning.
 7jobs:
 8  # Job #1 - Inserts sponsors into README
 9  insert-sponsors:
10    runs-on: ubuntu-latest
11    steps:
12      - name: Checkout 🛎️
13        uses: actions/checkout@v2
14      - name: Generate Sponsors in Credits 💖
15        uses: JamesIves/github-sponsors-readme-action@1.0.5
16        with:
17          token: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
18          file: '.github/README.md'
19  # Job #2 - Inserts contributors into README
20  insert-credits:
21    runs-on: ubuntu-latest
22    name: Inserts contributors into credits.md
23    steps:
24    - name: Contribute List - Credits Page
25      uses: akhilmhdh/contributors-readme-action@v2.2
26      env:
27          GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
28      with:
29        image_size: 80
30        readme_path: .github/README.md
31        columns_per_row: 6
32        commit_message: 'Updates contributors list'
33        committer_username: liss-bot
34        committer_email: liss-bot@d0h.co